How to limit allocatable memory per node on Kubernetes?
See Reserve Compute Resources for System Daemons.
In the systemd, we can configure kubelet with Node Allocatable feature like this.
$ cat > /etc/systemd/system/kubelet.service.d/20-node-eviction.conf <<EOFEnvironment="KUBELET_EXTRA_ARGS=--eviction-hard=memory.available<500Mi --system-reserved=memory=1Gi"EOF$ systemctl daemon-reload