Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Last active June 22, 2018 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipsj/1751ebebcc9bde4ae9b2ef8751694a8d to your computer and use it in GitHub Desktop.
Save phillipsj/1751ebebcc9bde4ae9b2ef8751694a8d to your computer and use it in GitHub Desktop.
## Gets kubectl
echo "Fetching kubectl..."
kubectlUrl="https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
curl -o kubectl "$kubectlUrl"
echo "Making kubectl executable..."
chmod +x ./kubectl
echo "Moving kubectl to /usr/local/bin..."
sudo sudo mv ./kubectl /usr/local/bin/kubectl
## Get Heptio Authenticator for AWS
echo "Fetching heptio-authenticator-aws..."
heptioUrl="https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/bin/linux/amd64/heptio-authenticator-aws"
curl -o heptio-authenticator-aws "$heptioUrl"
echo "Making heptio-authenticator-aws executable..."
chmod +x ./heptio-authenticator-aws
echo "Moving heptio-authenticator-aws to /usr/local/bin..."
sudo mv ./heptio-authenticator-aws /usr/local/bin/heptio-authenticator-aws
## Get Helm
echo "Fetching Helm..."
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
chmod 700 get_helm.sh
sudo ./get_helm.sh
## Gets the AWS CLI tools
echo "Installing AWS CLI tools..."
pip3 install awscli --upgrade --user
echo "Finished"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment