Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Kubernetes Resource Quotas and LimitRanges
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[NAMESPACE] - ✦
[CPU_QUOTA] - ✦
[MEM_QUOTA] - ✦
[DEFAULT_CPU_LIMIT]
k8s-resource-quota-limitrange-governance.txt
Generate a governance manifest for the '[NAMESPACE]' namespace. Include a ResourceQuota that limits total CPU to '[CPU_QUOTA]' and Memory to '[MEM_QUOTA]'. Additionally, create a LimitRange that sets a default container CPU limit to '[DEFAULT_CPU_LIMIT]' if one isn't specified by the developer. This prevents any single microservice from monopolizing cluster resources.
Example Output
"The AI will output two YAML resources—ResourceQuota and LimitRange—to enforce resource boundaries at the namespace level."