Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Kubernetes Node Affinity and Taints/Tolerations
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[APP_NAME] - ✦
[NODE_LABEL_KEY] - ✦
[NODE_LABEL_VALUE] - ✦
[TAINT_KEY]
k8s-node-affinity-taints-tolerations.txt
Design a Kubernetes manifest that ensures the application '[APP_NAME]' is scheduled only on specific hardware. Use 'nodeAffinity' to target nodes with the label '[NODE_LABEL_KEY]=[NODE_LABEL_VALUE]'. Additionally, add a 'toleration' so the pod can be scheduled on nodes tainted with '[TAINT_KEY]'. This is required for running high-performance microservices on dedicated or specialized worker nodes.
Example Output
"The AI will generate a Deployment spec using affinity and tolerations to strictly control pod placement on the cluster nodes."