Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for High-Availability Kubernetes Deployment with HPA

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

Required Variables

  • [SERVICE_NAME]
  • [DOCKER_IMAGE]
  • [CPU_REQUEST]
  • [MEMORY_LIMIT]
  • [MAX_REPLICAS]
k8s-deployment-hpa-autoscaling-generator.txt
Act as a Senior DevOps Engineer. Create a production-grade Kubernetes Deployment manifest and a HorizontalPodAutoscaler (HPA) for the service '[SERVICE_NAME]'. Requirements: Use image '[DOCKER_IMAGE]', set CPU requests to '[CPU_REQUEST]' and memory limits to '[MEMORY_LIMIT]'. The HPA must scale up to '[MAX_REPLICAS]' based on 70% CPU utilization. Include readiness and liveness probes using HTTP GET on port 8080, and implement a rolling update strategy with a maxSurge of 25%.

Example Output

"The AI will generate a YAML file containing a Deployment with resource constraints and health checks, plus an HPA resource targeting the deployment's metrics."