CKA v1.35 · Workloads and Scheduling (15%) → "Configure Pod admission and scheduling (limits, node affinity, etc.)" Target time: 12 minutes
Node muscle-worker2 has been labelled disktype=ssd and tainted
workload=batch:NoSchedule.
In namespace sched, create a Deployment batch (3 replicas, image
nginx:1.27-alpine) that:
workload=batch:NoSchedule taint.disktype=ssd (hard requirement, not a preference).topologySpreadConstraints:
maxSkew 1, topologyKey kubernetes.io/hostname,
whenUnsatisfiable ScheduleAnyway.All 3 replicas must be Running, and all 3 must land on muscle-worker2.
NOTE: this scenario taints muscle-worker2. Left in place, that taint stops
other scenarios from scheduling. Clean up with:
bin/reset scenarios/cka/07-scheduling
bin/doctor --fix