Created
November 6, 2021 07:16
-
-
Save janakiramm/39a3aed92ffddccdf2b559b6dbc4f6fb to your computer and use it in GitHub Desktop.
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
# 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