Kubernetes & Operations
Taints and tolerations
Explain how taints repel Pods, how tolerations allow them onto tainted nodes, and how NoExecute evicts running Pods after an optional time limit set by the workload.
What you will be able to do
- Taint a node and tolerate the taint in a Pod spec, with a selector to steer the Pod there.
- Decide when a NoExecute taint and its tolerationSeconds value suit a workload.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- Scheduler filteringIntermediate · 4 min
Explain how the kube-scheduler filters nodes by feasibility, why it counts requests rather than live usage, and how to read the reasons on a Pending Pod.
- Scheduler scoringIntermediate · 4 min
Explain how the scheduler scores the nodes that survive filtering, how plugin weights change the winner, and why equal nodes can receive Pods unevenly across a rollout.
- Topology spread constraintsIntermediate · 5 min
Topology spread constraints keep matching pods evenly spread across zones, and they explain why a hard rule can leave pods Pending when one zone has no room.
- Requests and limitsIntermediate · 4 min
Requests and limits decide where a pod lands and how much CPU or memory it can use, and a CPU limit can slow a service even when the node sits idle.
- Pod QoSIntermediate · 4 min
A pod's QoS class follows its requests and limits, and that class decides the order in which the kubelet evicts pods when node memory runs short.
- OOMKilled diagnosisAdvanced · 4 min
An OOMKilled exit means the kernel ended a container for passing its memory limit, and the memory that counts includes more than the JVM heap.