Is there any way to turn off eviction in kubelet?

9/9/2019

According to this article it is the only way to preserve system pods when eviction might happen. I was wondering if there is chance to turn off eviction mechanism and keep all pods - allow starvation in kubelet configuration? I would like to keep pods from certain namespaces always up even if node is low in resources.

-- MichaƂ Dygas
docker
evict
kubelet
kubernetes

1 Answer

9/10/2019

You can use priority classes to prioritise your important pods over others. You can also use system-cluster-critical or system-node-critical as the priorityClassName to mark the pod as critical if you have PodPriority feature gates enabled. See Guaranteed Scheduling For Critical Add-On Pods for details

-- Shawlz
Source: StackOverflow