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
- After running kubeadm certs renew all, openssl still shows the old expiry date on the certificate served on port 6443. What is the most likely reason?
- A Deployment wants 5 replicas but only 3 Pods exist and none is Pending. Where does a ResourceQuota rejection show up?
- 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?