Multi-Node Clusters (Preview)

A Manifest cluster can run on more than one host: one bootstrap node, which is the host you install by following the Installation guide, plus agent nodes that add worker capacity. Agents run application workloads. The bootstrap node keeps the control plane, the in-cluster registry, the ingress, and the stateful services.

Multi-node clusters run RKE2. A host that already runs k3s from an earlier release stays single-node; to build a multi-node cluster, start from new hosts.

📘

Preview feature

Multi-node clusters are a preview. The multi-node setup questions and the join command stay hidden until you enable the multi-node feature on every host involved. Enable it for a single command with an environment variable:

sudo MANIFEST_INSTALLER_FEATURES=multi-node /usr/local/bin/manifest-installer setup

or for every command on that host by adding it to the features list in root's installer settings, /root/.config/manifest/installer-config.yaml (the installer runs under sudo):

features:
  - multi-node

Before you begin

Plan the cluster around these limits:

  • Only agent (worker) nodes can join. The bootstrap node is the only control plane; adding control-plane nodes is not supported yet.

  • The bootstrap node is still the host to size and protect. Persistent volumes stay on the node where they were created. Everything stateful that exists when you add the first agent (MongoDB, PostgreSQL, MinIO, RabbitMQ, the in-cluster registry) stays on the bootstrap node, and your instance snapshot of it is still your recovery point. A volume created after agents exist, for example by enabling the observability suite later, lands on whichever node runs its workload. Either enable such features before adding agents, or include every node in your snapshots.

  • Users reach the platform through the bootstrap node. Point DNS at the bootstrap node's cluster endpoint (see below). The installer does not open ports 80 and 443 on agents.

  • Every node needs the same disk layout and hardening. Size /var on each agent for container images and pod data. On a FIPS install, every agent must already be in FIPS mode. On a STIG-hardened install, pass --stig-hardened to join so each agent gets the same hardening. Every node needs a unique hostname.

  • Every node needs the release packages. Run download (or import-bundle on an air-gapped host) for the same version on every host. Agents use only part of the package set.

  • Nodes must reach each other on the cluster ports, and nothing else should. The installer opens these ports in the host firewall, on the interface the node's default route uses:

    PortPurposeOpened on
    8472/udpPod network (VXLAN)Every node
    10250/tcpKubeletEvery node
    6443/tcpKubernetes API, which agents reachBootstrap node
    9345/tcpAgents joining the clusterBootstrap node

    VXLAN traffic is not authenticated, so limit these ports to your cluster nodes' addresses at the network layer (a security group, a network firewall, or extra host firewall rules). The installer does not know your node subnet and cannot do this for you.


1. Set up and deploy the bootstrap node

Run setup on the bootstrap node with the preview enabled. On the host page, answer yes to Multi-node cluster. The next page asks for the cluster endpoint: the hostname or IPv4 address the other nodes use to reach this host. Choose an address that will not change, because agents keep using it.

Then run deploy as usual. The deploy adds the endpoint to the cluster's API server certificate, opens the cluster ports in the host firewall, and creates an agent token, a credential agents use to join. The installer generates it and stores it in config.yaml with your other credentials. When the deploy finishes, it prints where the agent token is stored and the command to run on each agent.

To turn an existing single-node RKE2 install into a multi-node one, re-run setup with the preview enabled, answer yes to Multi-node cluster, and deploy the version you already run. RKE2 restarts once to pick up the new certificate and agent token.


2. Join an agent node

On the bootstrap node, read the agent token:

sudo cat /var/lib/rancher/rke2/server/agent-token

Use agent-token, not the node-token file next to it. node-token is the server's own token, and join refuses it.

🚧

Handle the agent token as a secret

Anyone with the agent token can join a host to your cluster as a worker. Copy it to the new host over a secure channel, into a file only root can read, and delete that copy once the node has joined. Never paste the token on a command line.

On the new host, install the manifest-installer binary, then download (or import) the same version's packages as root, the same way you will run join.

download needs the AWS credentials Manifest provided (see Installation → Configure AWS credentials), stored for root. Credentials saved by another account, or exported in your shell, do not reach a command run under sudo, so save them with sudo first. An air-gapped host that uses import-bundle skips this:

sudo /usr/local/bin/manifest-installer config set aws.accessKeyID <provided-by-manifest>
read -rs SECRET_ACCESS_KEY   # paste the secret access key; input is not echoed
printf %s "$SECRET_ACCESS_KEY" | sudo /usr/local/bin/manifest-installer config set aws.secretAccessKey

Then download the packages and join the cluster:

sudo /usr/local/bin/manifest-installer download --version <installed version>
sudo MANIFEST_INSTALLER_FEATURES=multi-node /usr/local/bin/manifest-installer join --server <cluster endpoint> --version <installed version> --token-file /root/agent-token

Under sudo, the installer keeps packages in root's data directory, /root/.local/share/manifest/, so join does not find packages another account downloaded. If you keep packages elsewhere, pass the same XDG_DATA_HOME to both commands, for example sudo XDG_DATA_HOME=/mnt/manifest-data /usr/local/bin/manifest-installer join ...; sudo drops exported variables. Call the installer by its full path: on RHEL, sudo does not search /usr/local/bin.

  • --version is the version the bootstrap node runs. Without it, join uses the latest version downloaded on the agent, which must not be newer than the bootstrap node's.
  • --stig-hardened applies the STIG hardening on a STIG-hardened install.
  • --token-stdin reads the token from standard input instead of a file, for automation.
  • --cluster-cidr and --service-cidr are needed only if you changed the pod or service address ranges in setup. Pass the same values here; the agent's firewall trusts those ranges.

join prepares the host the same way deploy does, installs RKE2 as an agent, and waits up to five minutes for the node to report Ready. If the token is wrong, the endpoint cannot be reached, or the node does not come up, join fails instead of leaving the host half-joined. Running join again on a node that already joined is safe: it reapplies the configuration and confirms the node is Ready.

join does not run on the bootstrap node or on any host where setup has written a config.yaml, and deploy does not run on an agent.

Confirm the new node from the bootstrap node:

kubectl get nodes

Run the RKE2 STIG check on the bootstrap node only; it checks control-plane settings, which agents do not have.


Upgrade a multi-node cluster

  1. Upgrade the bootstrap node first, as described in Upgrade.
  2. On every agent, download (or import) the new version's packages and run join again as above, with the multi-node feature enabled, the new --version, the same endpoint, and the same token. RKE2 on the agent is upgraded in place and the node reports Ready again.

kubectl get nodes shows the RKE2 version each node runs.


Remove an agent node

The installer does not have a command to remove a node yet.

Persistent volumes are stored on the disk of the node they were created on, under /var/lib/rancher/rke2/storage/. Draining a node does not move them, and uninstalling RKE2 deletes them, so confirm the agent holds none before you remove it. Run steps 1 to 3 on the bootstrap node:

  1. Cordon the agent. This stops new workloads, and new volumes, from being placed on it, without evicting anything already running there:

    kubectl cordon <node>
  2. List each volume with the node it is stored on, and every volume claim with its status:

    kubectl get pv -o custom-columns='NAME:.metadata.name,NAMESPACE:.spec.claimRef.namespace,CLAIM:.spec.claimRef.name,NODE:.spec.nodeAffinity.required.nodeSelectorTerms[*].matchExpressions[*].values[*]'
    kubectl get pvc -A

    If any volume lists the agent you are retiring, or any claim is still Pending, stop. Return the agent to service with kubectl uncordon <node>, back up that data, and contact Manifest support before removing the node.

  3. Drain the agent, then delete it from the cluster. Persistent volume data stays on disk, but --delete-emptydir-data deletes the contents of the pods' emptyDir volumes, their temporary scratch space. Copy anything you need from those before draining:

    kubectl drain <node> --ignore-daemonsets --delete-emptydir-data && kubectl delete node <node>

    If the drain fails, the node is not deleted. Resolve the pods it names before you retry, and do not continue to step 4 until both commands succeed.

  4. On the agent host, run rke2-uninstall.sh. It removes RKE2, including the agent configuration that holds the token. deploy does not run on a host where the RKE2 agent is still installed.

To go back to a single-node cluster, retire every agent first, then re-run setup on the bootstrap node, answer no to Multi-node cluster, and deploy. That deploy removes the endpoint and the agent token from RKE2, so any agent still joined loses access at its next restart. The cluster ports stay open; close them in your host firewall once no agents remain.


Did this page help you?