1.

If a node is tainted, is there a way to still schedule the pods to that node?

Answer»

When a node is TAINTED, the pods don't get scheduled by DEFAULT, however, if we have to still schedule a pod to a tainted node we can start applying tolerations to the pod spec.

Apply a taint to a node:

kubectl taint NODES node1 key=value:NoSchedule

Apply toleration to a pod:

spec: tolerations: - key: "key" OPERATOR: "Equal" value: "value" EFFECT: "NoSchedule"


Discussion

No Comment Found

Related InterviewSolutions