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.
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