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
- A toleration permits; nodeSelector attracts.
- Place both fields under Pod spec.
- 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.