Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Kubernetes Pod Topology Spread Constraints
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[APP_LABEL] - ✦
[TOPOLOGY_KEY] - ✦
[MAX_SKEW]
k8s-pod-topology-spread-constraints.txt
Develop a Kubernetes Deployment spec focused on high availability using Pod Topology Spread Constraints. For the application '[APP_LABEL]', configure a constraint using the topologyKey '[TOPOLOGY_KEY]'. Set maxSkew to '[MAX_SKEW]' and specify 'DoNotSchedule' for whenUnsatisfiable. Ensure that the scheduler distributes pods evenly across availability zones or nodes to prevent single-point-of-failure scenarios.
Example Output
"The AI will generate a Deployment YAML with a 'topologySpreadConstraints' block that optimizes pod distribution across failure domains."