Skip to content

Cluster init

Init first control-plane

curl -sfL https://get.k3s.io K3S_TOKEN=<token> sh -s - server --cluster-init --disable servicelb

Join other control-plane nodes

curl -sfL https://get.k3s.io | K3S_TOKEN=<token> sh -s - server \
    --server https://<existing-server-name>:6443 \
    --disable servicelb --tls-san <new-node-name>.lupinedmz

Join agent/worker nodes

curl -sfL https://get.k3s.io | K3S_URL=https://qk3s-m-01:6443 K3S_TOKEN=<token> sh -

install nfs-common

sudo apt install nfs-common

taint master nodes NoSchedule

kubectl taint nodes <master-node-name> node-role.kubernetes.io/control-plane=:NoSchedule