Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ThomasSchoenbeck/52591450eb5d320908a9e17e7affbdcd to your computer and use it in GitHub Desktop.
Save ThomasSchoenbeck/52591450eb5d320908a9e17e7affbdcd to your computer and use it in GitHub Desktop.
download tools
# direct download
curl -LO "https://dl.k8s.io/release/v1.23.0/bin/windows/amd64/kubectl.exe"
# linux command
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/windows/amd64/kubectl.exe" -o c:\tools\kubectl.exe
# windows cmd command
FOR /F "tokens=* USEBACKQ" %g IN (`curl -L -s https://dl.k8s.io/release/stable.txt`) do (SET "k8s-ver=%g") && curl -L "https://dl.k8s.io/release/%k8s-ver%/bin/windows/amd64/kubectl.exe" -o c:\tools\kubectl.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment