Skip to content

Instantly share code, notes, and snippets.

@indradhanush
Forked from wellsie/install-kubectl.sh
Created April 20, 2018 10:14
Show Gist options
  • Save indradhanush/390fa3375dc0c0ea271f94544b26b8d1 to your computer and use it in GitHub Desktop.
Save indradhanush/390fa3375dc0c0ea271f94544b26b8d1 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment