#!/bin/bash mkdir ~/.kube sudo cp /etc/rancher/rke2/rke2.yaml ~/.kube/config sudo chown $USER. ~/.kube/config sudo chmod 0600 ~/.kube/config sudo cp /var/lib/rancher/rke2/bin/kubectl /usr/local/bin/ cat <> ~/.profile alias k=kubectl EOF