Kubernetes
Hard
Concepts
On cgroup v2 nodes, which kubelet configuration field makes the kernel OOM-kill only the offending process in a container instead of every process in it?
Select your answer:
Show answer and explanation
Answer: singleProcessOOMKill: true
Explanation
By default on cgroup v2 the kubelet sets memory.oom.group on each container's cgroup, so an OOM kill takes down all processes in the container together. singleProcessOOMKill: true stops the kubelet from setting that flag, which matches the old cgroup v1 behavior. kernelMemcgNotification is a real field, but it only makes the kubelet notice memory pressure faster for eviction.
More hard Kubernetes questions
- Why is kubelet.conf missing from the output of kubeadm certs check-expiration?
- A kubeadm apiserver certificate still has 300 days left. What does kubeadm certs renew apiserver do?
- Why can a node with 10% actual CPU usage still produce 'Insufficient cpu' in a FailedScheduling event?
- Why does 'pod has unbound immediate PersistentVolumeClaims' appear in a FailedScheduling message without a per-node count?
- A Pod requests 64 CPU on a cluster of 16-CPU nodes. Why does its event end with 'Preemption is not helpful for scheduling'?
- What is a Kubernetes Operator?