Created
June 9, 2023 00:43
-
-
Save ValchanOficial/75da0ef889710d5b80b1ea3e3ed93667 to your computer and use it in GitHub Desktop.
[kubectl WSL2] How to install kubectl into WSL2
This file contains hidden or 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
// 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