k8wiz
Kubernetes
Hard
Concepts

A node gets a NoExecute taint. A pod already running on it tolerates the taint with tolerationSeconds: 300. What happens?

Select your answer:

Show answer and explanation

Answer: It keeps running for 300 seconds, then is evicted

Explanation

NoExecute evicts running pods that don't tolerate the taint. A pod that tolerates it without tolerationSeconds stays forever. With tolerationSeconds, the pod stays bound for that many seconds after the taint is added and is then evicted. Kubernetes gives pods this kind of toleration for the node.kubernetes.io/not-ready and unreachable taints, with a default of 300 seconds.