How to disable autoscaler for rke2-coredns

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




RKE2 allows the use of HelmChartConfig resources to customize add-on packages deployed as HelmCharts[1]. This can be used for packages like Canal, CoreDNS, Nginx-Ingress, and so on.

Note: the example below is for standalone RKE2 clusters and not deployed by Rancher


A creation of a file under /var/lib/rancher/rke2/server/manifests/ is necessary to disable autoscaler for rke2-coredns. For our case, the file is called rke2-coredns-extraconfig.yaml and it will have the content below. The rke2-server service will restarted to apply the change.
kind: HelmChartConfig
  name: rke2-coredns
  namespace: kube-system
  valuesContent: |-
      enabled: false

The following can be executed to confirm that the autoscaler pod wasn't created
kubectl -n kube-system get pods | grep autoscaler

The coreDNS or the rke2-coredns package could be downloaded to review the values.yml to determine what could be customized [2][3].

Additional Information


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:000021185
  • Creation Date: 26-Aug-2023
  • Modified Date:11-Oct-2023
    • SUSE Rancher

< Back to Support Search

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

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