CKA lab · Schedule to a labeled worker
A diagnostic workload should run on nodes labeled for a specific team.

Initial conditions
In a disposable cluster choose a worker and label it team=platform. Keep at least one unlabeled worker.
Objective
Create the Pod so the scheduler only selects a matching node.
Hint
Use nodeSelector for the exact label match.
Solution manifest
apiVersion: v1
kind: Pod
metadata:
name: placement-check
spec:
nodeSelector:
team: platform
containers:
- name: sleeper
image: busybox:1.36
command: ["sleep", "3600"]Solution commands
kubectl label node WORKER team=platform --overwrite
kubectl apply -f pod.yamlValidate the result
kubectl get pod placement-check -o wide
kubectl get nodes -l team=platformThe chosen node should have the matching label. Node affinity supports more flexible matching, and tolerations allow placement on tainted nodes without selecting them by themselves.
Common mistakes
Labeling the Pod instead of the node does not satisfy a node selector.
Free official documentation · Verified 26 November 2026
Use your own disposable Kubernetes environment.
