-
-
Save terrymafura/11431b82cb64a0b7b5b04dcd32e381a6 to your computer and use it in GitHub Desktop.
Revisions
-
cmendible created this gist
Nov 16, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/bin/bash # Receives your Windows username as only parameter. curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.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