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

Kubernetes, Hard (Expert), Concepts. https://k8wiz.com/uquiz/a-node-gets-a-noexecute-taint-a-pod-already-running-on-it-tolerates-the-taint-with-tolerationseconds-300-what-happens

- A. It is evicted at once, since NoExecute ignores tolerationSeconds
- B. It keeps running until the taint is removed from the node
- C. It is restarted on the same node every 300 seconds
- D. It keeps running for 300 seconds, then is evicted

**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.
