Skip to content

Instantly share code, notes, and snippets.

@wellsie
Last active April 20, 2018 10:14
Show Gist options
  • Save wellsie/9ee622f2ea90e67c543e to your computer and use it in GitHub Desktop.
Save wellsie/9ee622f2ea90e67c543e to your computer and use it in GitHub Desktop.
Install kubectl (amd64)
#!/bin/bash -eux
ARCH=${ARCH:-linux}
K8S_VER=${K8S_URL:-v1.1.8}
K8S_URL=https://storage.googleapis.com/kubernetes-release/release
curl -Lo /usr/local/bin/kubectl ${K8S_URL}/${K8S_VER}/bin/$ARCH/amd64/kubectl
chmod +x /usr/local/bin/kubectl
@wellsie
Copy link
Author

wellsie commented Mar 16, 2016

curl https://gist.githubusercontent.com/wellsie/9ee622f2ea90e67c543e/raw/e4474b6f1020cfc3f3bada08be381417d35c8620/install-kubectl.sh | sudo bash -s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment