How to create seperate ETCD and Controlplane nodes in RKE2

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

Environment

RKE2 1.21.2 and higher

Situation

As part of a HA set-up, it may be required to run RKE2 with the ETCD database split from the Control plane nodes.

Resolution

1. On the desired ETCD node create `/etc/rancher/rke2/config.yaml` with the following contents:
   disable-apiserver: true
   disable-controller-manager: true
   disable-kube-proxy: false
   disable-scheduler: true

2. On the etcd node install rke2 `curl -sfL https://get.rke2.io | INSTALL_RKE2_VERSION="<required version of RKE2>" INSTALL_RKE2_TYPE="server" sh -` and start it `systemctl start rke2-server`

3. On the controlplane node create `/etc/rancher/rke2/config.yaml` with the following contents:
   server: https://<ip of the etcd node>:9345
   token: <token string from /var/lib/rancher/rke2/server/node-token on the etcd node>
   disable-etcd: true
   disable-kube-proxy: false
   etcd-expose-metrics: false

4. On the controlplane node install rke2 `curl -sfL https://get.rke2.io | INSTALL_RKE2_VERSION="<required version of RKE2>" INSTALL_RKE2_TYPE="server" sh -` and start it `systemctl start rke2-server`

5. Add agent nodes (https://docs.rke2.io/install/ha/#5-optional-join-agent-nodes).
 

Additional Information

This is only an example to show this configuration in a working state. In a prod environment, you should configure a fixed registration address per the documentation at https://docs.rke2.io/install/ha/#1-configure-the-fixed-registration-address

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:000020771
  • Creation Date: 19-Sep-2022
  • Modified Date:11-Oct-2022
    • 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