Write a Kubernetes deployment manifest
Write a production-grade Kubernetes manifest with resource limits, health probes, rolling updates, and pod anti-affinity for high availability.
Preview
Copy prompt
Write a production-ready Kubernetes Deployment and Service manifest for [App Name]. Set explicit CPU and memory requests and limits on the container. Configure both a liveness probe and a readiness probe with appropriate paths, initial delays, and failure thresholds. Use a RollingUpdate deployment strategy with sensible maxUnavailable and maxSurge values. Mount a ConfigMap to inject environment variables and add pod anti-affinity rules to prevent multiple replicas from landing on the same node.
More
DevOps
Prompts
