Question
Taint the node node01 with key equals to env, value equals to dev and effect set to NoSchedule.
Now do necessary configuration so that ONLY pods with label tier=backend should get deployed to node node01.
Answer
Taint node:
kubectl taint node node01 env=dev:NoSchedule
Manifest for a sample pod shoud contain this snippet:
metadata:
labels:
tier: backend
spec:
tolerations:
- key: "env"
operator: "Equal"
value: "dev"
effect: "NoSchedule"