Skip to content

Instantly share code, notes, and snippets.

@mattmattox
Created September 28, 2022 15:18
Show Gist options
  • Save mattmattox/2a5aadb30c457f08e067e8b597f085c6 to your computer and use it in GitHub Desktop.
Save mattmattox/2a5aadb30c457f08e067e8b597f085c6 to your computer and use it in GitHub Desktop.
quick-kubectl-access-for-rke2
#!/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