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

Rancher 2.6.x and 2.7.x
rke2 cluster

Situation

The existing rke2 cluster's pod limit has been exhausted and needs to be increased.

Resolution

Use the below arguments in the rke2 configuration file /etc/rancher/rke2/config.yaml
kubelet-arg:
  - "max-pods=200"
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

Top Issue

Additional Information

When looking to change the max-pods for a node, make sure to take into account the number of IP addresses available from each nodes node-cidr, as this will limit the number of pods that can be scheduled on a node.

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-Jun-2023
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center