SUSE Support

Here When You Need Us

How to change the open files for the pod in RKE2 cluster?

This document (000021920) is provided subject to the disclaimer at the end of this document.

Environment

  • RKE2
  • K3s

Situation

When there is a need to increase the open file limit, when the system or application running on it is hitting the maximum allowed number of open file descriptors.

Resolution

SSH into the worker node where the open file is to be increased

systemctl edit rke2-agent

Modify the file

### Editing /etc/systemd/system/rke2-agent.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file
[Service]
LimitNOFILE=xxxx # use your value instead of xxx

Once you save, this will create an override.conf file with new setting under /etc/systemd/system/rke2-agent.service.d/ 

Note: Please be sure to place the above configuration between the top/bottom comment lines in the file to take effect. Also, the limit value nofiles may not take effect if the value used for rke2-agent service is greater than the OS ulimit, in this case, increase the OS ulimit.

Restart rke2-agent

sudo systemctl restart rke2-agent.service

Please create a new pod on this node for testing and execute it to view the ulimit -n value.

Status

Top Issue

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:000021920
  • Creation Date: 17-Jul-2025
  • Modified Date:21-Jul-2025
    • SUSE Rancher

< Back to Support Search

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

tick icon

SUSE Support Forums

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

tick icon

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.

tick icon

Open an Incident

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