Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# add RKE2 binaries to path
export PATH=$PATH:/var/lib/rancher/rke2/bin
echo "export PATH=$PATH:/var/lib/rancher/rke2/bin" >> ~/.bashrc
# copy RKE2 kubeconfig file to the default location
mkdir ~/.kube
cp /etc/rancher/rke2/rke2.yaml ~/.kube/config
chmod 600 ~/.kube/config
# verify the configuration
kubectl get nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment