https://rancher.com/ logo
Title
s

salmon-hair-21488

04/05/2023, 5:06 PM
Hello, how can I increase node's pod limit for RKE2? Tried using this config
apiVersion: <http://kubelet.config.k8s.io/v1beta1|kubelet.config.k8s.io/v1beta1>
kind: KubeletConfiguration
maxPods: 250
with in /etc/rancher/rke2/config.yaml but it causes node to be in NotReady state 😞
kubelet-arg:
- config: /etc/rancher/rke2/kubelet-config.yaml
1
Nevermind, this worked
kubelet-arg:
- "max-pods=250"
c

creamy-pencil-82913

04/05/2023, 5:11 PM
you’re going to want to change your cluster cidr node mask as well or you’ll run out of pod IPs on the nodes
250 pods and 255 IPs doesn’t allow enough space when you’re running close to capacity