+++
draft = false
date = "2017-01-28T22:35:51+01:00"
title = "kubectl"

+++


#!/bin/bash
set -e
set -o pipefail

VERSION=${VERSION:-1.10.13}
DL_PATH=/tmp/kubectl.${VERSION}
ARCH=$(uname | awk '{print tolower($0)}')
URL=https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/${ARCH}/amd64/kubectl

echo $URL

exit

echo "downloading $URL"

curl -SfL $URL > $DL_PATH
chmod a+x $DL_PATH
sudo mv $DL_PATH /usr/local/bin/kubectl
