Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Kubernetes Kustomize Overlays for Multi-Env

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [ENV_NAME]
  • [REPLICA_COUNT]
  • [CPU_LIMIT]
  • [LOG_LEVEL]
k8s-kustomize-overlay-environment-management.txt
Generate a Kustomize overlay for the '[ENV_NAME]' environment. The overlay should modify a base deployment by setting replicas to '[REPLICA_COUNT]'. Include a JSON patch to update the container resource limits to '[CPU_LIMIT]'. Additionally, add a ConfigMapGenerator that creates an application-config with a LOG_LEVEL set to '[LOG_LEVEL]'. Ensure the kustomization.yaml correctly references the base folder.

Example Output

"The AI will generate a kustomization.yaml and associated patch files to tailor a generic microservice for a specific environment (e.g., prod or dev)."