Tous les labs

Dedicate a node with taints and affinity

Intermediate ~25 mink8s

Reserve worker-2 for analytics and place the report Pod there without allowing unrelated workloads.

Objectifs
  • Label worker-2 workload=analytics
  • Taint it dedicated=analytics:NoSchedule
  • Add matching toleration and nodeSelector to Pod report
Étapes suggérées
  1. A toleration permits; nodeSelector attracts.
  2. Place both fields under Pod spec.
  3. Confirm spec.nodeName after scheduling.
Indices
Voir la solution
kubectl label node worker-2 workload=analytics
kubectl taint node worker-2 dedicated=analytics:NoSchedule
# Add nodeSelector and toleration to report, then apply.