Can we tune kubelet reservations and eviction thresholds?
No. On Syself Autopilot the Cluster Stack sets the kubelet reservations (systemReserved) and eviction thresholds (evictionHard), which is why a Kubernetes node's allocatable memory is lower than its capacity. You cannot change them per cluster or per node pool.
The kubelet holds back CPU and memory for the operating system, the container runtime and the node daemons, so a burst of pod load cannot take the whole node down. Allocatable is Capacity minus systemReserved minus the evictionHard memory threshold.
Syself sizes systemReserved for each node from its CPU count and RAM when the node is provisioned. A large bare-metal server reserves more memory than a small cloud server, and a smaller share of its total. The hard eviction threshold for memory is 300Mi on every node.
Run kubectl describe node to see Capacity and Allocatable, and plan your pod requests against Allocatable. The reserved memory per node size and all eviction thresholds are in Node resources and limits. To size your pods against them, follow Set resource requests and limits.
If you have a use case that needs different values, reach out to us at support@syself.com.
Related questions
