K what? Put it in Reverse K3s & Minikube

Blog post includes installing K3s, see below for the goodies:

  • Install k3s to pass variables for desired version & token value –
curl -sfLk https://get.k3s.io | INSTALL_K3S_VERSION=v1.34.1+k3s1 K3S_TOKEN=KCNA INSTALL_K3S_EXEC="--disable traefik --kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1%" sh -
  • Create link from k3s binary –
ls -altrh /usr/local/bin/kubectl
  • See the k3s kubeconfig configuration file –
cat /etc/rancher/k3s/k3s.yaml
  • See instances –
kubectl get nodes
  • Configure worker node to pass ssh
ssh worker-1 'curl -sfLk https://get.k3s.io | INSTALL_K3S_VERSION=v1.34.1+k3s1 K3S_URL=https://control-plane:6443 K3S_TOKEN=KCNA INSTALL_K3S_EXEC="--kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1%" sh -'
  • Configure worker node to pass ssh.. notice how worker 2 is still v1.31.0..
ssh worker-2 'curl -sfLk https://get.k3s.io | INSTALL_K3S_VERSION=v1.31.0+k3s1 K3S_URL=https://control-plane:6443 K3S_TOKEN=KCNA INSTALL_K3S_EXEC="--kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1%" sh -'