Kubernetes

Pod Scheduling Affinity Validator

Paste affinity or topologySpreadConstraints YAML to validate structure, operator syntax, and detect configurations that can never be satisfied.

Calculations run locally in your browser

Pod Scheduling Affinity Validator

The Pod Scheduling Affinity Validator checks affinity, anti-affinity, and topologySpreadConstraints YAML for structural correctness and detects unsatisfiable scheduling constraints.

โ€ข Validate pod anti-affinity before deploying a high-availability workload

โ€ข Check topologySpreadConstraints syntax before applying to production

โ€ข Detect required affinity rules that no available node can satisfy

โ€ข Understand matchExpressions operator differences before writing a constraint

Developer-friendly cloud infrastructure. DigitalOcean provides cloud compute, networking, and managed databases with predictable pricing.
View Kubernetes options on DigitalOcean
External site ยท Independent provider ยท We may receive a commission ยท Not a recommendation
What does this tool tell you?
The Pod Scheduling Affinity Validator checks affinity, anti-affinity, and topologySpreadConstraints YAML for structural correctness and detects unsatisfiable scheduling constraints.
What affects the result most?
nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution vs preferredDuringScheduling. podAntiAffinity: topologyKey: kubernetes.io/hostname for pod spread across nodes. matchExpressions operators: In, NotIn, Exists, DoesNotExist โ€” syntax and behavior.
How should I use the result?
Treat the tool's output as a first-pass check, not a proof of correctness. A clean pass means no issues in the patterns this tool recognizes; a failure points to a specific problem you can investigate in your source. The underlying spec is the authoritative source for edge cases.
Kubernetes certification details. Linux Foundation CKA/CKAD/CKS certifications โ€” prove your production Kubernetes skills. $445 per exam, 60-day cookie.
View CKA certification details โ†’
External site ยท Independent provider ยท We may receive a commission ยท Not a recommendation