Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ValchanOficial/75da0ef889710d5b80b1ea3e3ed93667 to your computer and use it in GitHub Desktop.
Save ValchanOficial/75da0ef889710d5b80b1ea3e3ed93667 to your computer and use it in GitHub Desktop.
[kubectl WSL2] How to install kubectl into WSL2
// check release here -> https://kubernetes.io/releases/
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.27.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
windowsUser=$1
mkdir -p ~/.kube
ln -sf "/mnt/c/users/$windowsUser/.kube/config" ~/.kube/config
kubectl version --short
Original: https://gist.github.com/cmendible/ee6119ee202becd743888435e830b987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment