Challenge
DifficultyEasy
Learner activity No attempts yet

CKA Lab 06: Taints and Tolerations

Kubernetes foundations with task requirements and automatic verification.

Taints and Tolerations

Time: About 15 minutes

Use the dev-machine terminal. Each lab starts independently. The lab prepares toleration-lab; no resources from earlier labs are required.

Choose any Ready, schedulable worker node (not a control-plane node). Keep existing system labels and taints intact. Node names may differ between playgrounds.

  • Add label training.example.com/pool=frontend to your chosen worker.
  • Add taint training.example.com/dedicated=training:NoSchedule to that same worker.
  • Create a standalone Pod named web in toleration-lab.
  • Use nodeSelector to require training.example.com/pool=frontend.
  • Add a toleration with key training.example.com/dedicated, operator Equal, value training, and effect NoSchedule.
  • Let the scheduler place it on a worker with both the required label and taint. Do not assign spec.nodeName yourself.

Keep the taint in place until verification completes. A toleration permits placement on a tainted node; the selector constrains placement. Do not taint a control-plane node or remove existing system taints.

  • Exactly one regular container using image ghcr.io/iximiuz/labs/nginx:alpine
  • Pod phase: Running; Ready condition: True

Leave the Pod running and keep your node configuration in place until verification passes.

Choose your own commands or manifests. Checks evaluate the resulting state; command history is not graded.