Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 492 Bytes

k3s.md

File metadata and controls

19 lines (15 loc) · 492 Bytes

Set up K3S cluster

HA multi control_plane cluster embedded etcd

Master-1

curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="--cluster-init" sh -

Get the token from /var/lib/rancher/k3s/server/node-token

Master-n

curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="server --server https://<IP>:6443 --token <TOKEN>" sh -

client-n

curl -sfL https://get.k3s.io | K3S_URL=https://<IP>:6443 K3S_TOKEN=<TOKEN> sh -