- Server running a SUSE OS
- Hostname assigned
- DNS setup
This script will download the RKE2 tarballs, extract in a /tmp directory and subsequently copied to their final locations
curl -sfL https://get.rke2.io |sh -
This will enable the service installed via the shell script run previously.
systemctl enable --now rke2-server.service
If you want to follow the install after enabling the service use the command;
journalctl -u rke2-server -f
Copy this token from the RKE node you just installed to the clipboard (or have available) in order to add other servers or agents
cat /var/lib/rancher/rke2/server/node-token
Use the variable below to install an agent (worker) node
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
Put the IP Address of the server node and paste the token copied above
mkdir -p /etc/rancher/rke2
vim /etc/rancher/rke2/config.yaml
server: https://server.node:9345
token: <node-token>
systemctl enable --now rke2-agent.service
journalctl -u rke2-agent -f
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl get pods -A
DONE.