Installing Kubernetes Cluster with Rancher and MetalLB

Initialize cluster on master node curl -sfL https://get.k3s.io | sh -s - server k3s server --cluster-init --node-taint CriticalAddonsOnly=true:NoExecute --tls-san [K3S IP] --disable servicelb --disable traefik a K3S TOKEN should be generated and presented in the console, take note of it a SERVER TOKEN is also generated and stored in /var/lib/rancher/k3s/server/node-token Add additional masters curl -sfL https://get.k3s.io | K3S_URL=https://[K3S IP]:6443 K3S_TOKEN=[Token] sh -s - server --node-taint CriticalAddonsOnly=true:NoExecute --tls-san [K3S IP] --server https://[This node's IP address]:6443 --disable servicelb --disable traefik Add additional agents curl -sfL https://get....

February 15, 2021 · 2 min · JermaNoiD