Challenge on
Kubernetes Pod Scheduling: Pod Affinity and Anti-Affinity
Co-locate pods that belong together and keep apart pods that should not share a node using affinity and anti-affinity rules.
Focused, hands-on DevOps and server-side problems with hints, feedback, and automated solution checks.
Co-locate pods that belong together and keep apart pods that should not share a node using affinity and anti-affinity rules.
A Kubernetes cluster has an existing database Deployment running. Configure a new web Deployment to schedule its pods only on nodes where the database pods are already running using required pod affinity.