Understanding How K3s and RKE2 Work
17%
Installing and Configuring K3s
The next step is to install K3s on the workspace server.
# SSH into the workspace server
ssh root@$WORKSPACE_PUBLIC_IP
# Install K3s
curl -sfL https://get.k3s.io | \
INSTALL_K3S_VERSION="v1.33.5+k3s1" sh -s - \
server \
--write-kubeconfig-mode '0644'
K3s should be installed and running. A kubeconfig file should be created at /etc/rancher/k3s/k3s.yaml. We will copy this file to the local machine so that we can use it to interact with the cluster.
# Create the kubeconfig directoryEnd-to-End Kubernetes with Rancher, RKE2, K3s, Fleet, Longhorn, and NeuVector
The full journey from nothing to productionEnroll now to unlock all content and receive all future updates for free.
