How to set system-reserved and kube-resrved resources per node?

I see that we can set kube-reserved and system-reserved resources under services -> kubelet -> extra_args section of cluster config. But how can we assign per node (different reserve amounts per each node)?

As our worker-nodes are dying regularly, I’m very interested in that topic as well!! How can we set the kube-reserved setting in Rancher RKE2?

Is there a solutions for this please ??

In a Kubernetes cluster, the kube-reserved and system-reserved resources are typically set globally for all nodes using the --kube-reserved and --system-reserved flags in the kubelet configuration. However, if you need to assign different reserve amounts per node, you can achieve this by using a combination of Kubernetes features and customization, although it might require some manual management.

These are my kubelet args, hope this gives you some insights:

kubelet-arg:
  - --kube-reserved=cpu=1000m,memory=1000Mi,ephemeral-storage=5Gi
  - --system-reserved=cpu=1000m,memory=1000Mi,ephemeral-storage=5Gi
  - --eviction-hard=imagefs.available<10%,imagefs.inodesFree<10%,memory.available<1Gi,nodefs.available<10%,nodefs.inodesFree<10%,pid.available<10%
  - --max-pods=100