How to change the maxpod limit in RKE2 cluster
This document (000021093) is provided subject to the disclaimer at the end of this document.
Environment
RKE2 cluster
Situation
Resolution
kubelet-arg: - "max-pods=200"
Once the configurations are updated, you will need to restart the rke2-agent.service for the changes to apply.
If it's a downstream cluster managed through Rancher then, in the cluster configuration form, update the value under "Advanced" in kubelet args.
For rke2 clusters not managed by Rancher, this config is applied per-node
Status
Additional Information
Example of JSON data for kubelet-arg max-pods.
{ "node-label": [ "cattle.io/os=linux", "rke.cattle.io/machine=46e7c4ec-9f13-4e54-a656-fab20689792a" ], "private-registry": "/etc/rancher/rke2/registries.yaml", "protect-kernel-defaults": false, "server": "https://xx.xxx.xx.xxx:9345", "token": "xxxxxxxxxxxxxx", "kubelet-arg": [ "max-pods=120" ] }
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021093
- Creation Date: 07-Jun-2023
- Modified Date:27-Mar-2024
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com