SUSE Support

Here When You Need Us

How to disable autoscaler for rke2-coredns

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

Environment

RKE2

Situation


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

Resolution

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.
 
---
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: rke2-coredns
  namespace: kube-system
spec:
  valuesContent: |-
    autoscaler:
      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

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: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.com

SUSE Support Forums

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

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.

Open an Incident

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