kubectl taint nodes NODE_NAME LABEL_KEY:LABEL_VALUE:NoExecute
kubectl taint nodes NODE_NAME LABEL_KEY-
-
after the key will remove the key value from the taintstolerationSeconds
will define how long the pods can run on a tainted node before being evicted.tolerations:
- key: "KEY"
operator: "Equal"
value: "VALUE"
effect: "NoExecute"
tolerationSeconds: 300
node.kubernetes.io/not-ready
node.kubernetes.io/unreachable
node.kubernetes.io/out-of-disk
node.kubernetes.io/memory-pressure
node.kubernetes.io/disk-pressure
node.kubernetes.io/network-unavailable
node.kubernetes.io/unschedulable
tolerations:
- effect: NoSchedule
operator: Exists
[1]: Helm: set tolerations for promtail in loki-stack chart · Issue #2298 · grafana/loki · GitHub