Skip to content

Instantly share code, notes, and snippets.

@janakiramm
Created November 6, 2021 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janakiramm/39a3aed92ffddccdf2b559b6dbc4f6fb to your computer and use it in GitHub Desktop.
Save janakiramm/39a3aed92ffddccdf2b559b6dbc4f6fb to your computer and use it in GitHub Desktop.
# 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