diff --git a/README.md b/README.md index abb8511..6237d19 100644 --- a/README.md +++ b/README.md @@ -26,15 +26,24 @@ mount -a ## K3s cluster -On first node: +On first node (replace `` with the correct value): ```shell -curl -sfL https://get.k3s.io | sh -s - --disable local-path,traefik +curl -sfL https://get.k3s.io | sh -s - server --cluster-init --disable local-path,traefik --tls-san cat /var/lib/rancher/k3s/server/token kubectl config view --raw ``` -On subsequent nodes: +Install kube-vip (replace `` and `` with the correct values): ```shell -curl -sfL https://get.k3s.io | K3S_URL=https://:6443 K3S_TOKEN= sh - +ctr image pull ghcr.io/kube-vip/kube-vip:latest +cat << EOF > /var/lib/rancher/k3s/server/manifests/kube-vip.yml +$(curl https://kube-vip.io/manifests/rbac.yaml) +--- +$(ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:latest vip /kube-vip manifest daemonset --interface --address --inCluster --taint --controlplane --services --arp --leaderElection) +EOF +``` +On subsequent nodes (replace `` and `` with the correct values): +```shell +curl -sfL https://get.k3s.io | K3S_URL=https://:6443 K3S_TOKEN= sh -s - server --server --disable local-path,traefik ``` ### 0) Configure automatic updates