Kubernetes
Medium
Troubleshooting
The kubelet evicts a pod because its node has crossed the memory.available hard eviction threshold. What happens to that pod?
Select your answer:
Show answer and explanation
Answer: Its phase is set to Failed and it is not restarted on that node
Explanation
During node-pressure eviction the kubelet sets the pod's phase to Failed, with reason Evicted, and terminates it. It ignores PodDisruptionBudgets and uses a zero grace period for hard thresholds. A controller such as a Deployment then creates a new pod, which can land elsewhere. A container OOM kill is different: the kubelet restarts the container in place.
More medium Kubernetes questions
- Which component of the Kubernetes control plane is responsible for maintaining the desired state of the cluster?
- What is the difference between a Deployment and a StatefulSet?
- A pod is stuck in 'Pending' state. What is the most likely cause?
- Which component is responsible for maintaining network rules on nodes and enabling pod-to-pod communication?
- What is a DaemonSet used for in Kubernetes?
- What happens when a node in a Kubernetes cluster fails?