Created
September 28, 2022 15:18
-
-
Save mattmattox/2a5aadb30c457f08e067e8b597f085c6 to your computer and use it in GitHub Desktop.
quick-kubectl-access-for-rke2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ln -s /var/lib/rancher/rke2/bin/kubectl /usr/local/bin/kubectl | |
mkdir -p ~/.kube/ | |
ln -s /var/lib/rancher/rke2/server/cred/admin.kubeconfig ~/.kube/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment