add kubectl

This commit is contained in:
Jeffrey Paul 2018-03-06 18:05:22 -05:00
parent 377014b8df
commit e83d04d8b4
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
if which kubectl 2>&1 > /dev/null ; then
source <(kubectl completion bash)
fi

View File

@ -6,10 +6,14 @@ if which lsb_release; then
apt-get update apt-get update
apt-get -y upgrade apt-get -y upgrade
apt-get -y install $(cat $(lsb_release -i -s)-$(lsb_release -r -s)-packages.txt) apt-get -y install $(cat $(lsb_release -i -s)-$(lsb_release -r -s)-packages.txt)
# install kubectl
snap install kubectl --classic
fi fi
pip3 install --upgrade pip pip3 install --upgrade pip
# install docker-machine
URLBASE="https://github.com/docker/machine/releases/download/v0.14.0" URLBASE="https://github.com/docker/machine/releases/download/v0.14.0"
URL="$URLBASE/docker-machine-$(uname -s)-$(uname -m)" URL="$URLBASE/docker-machine-$(uname -s)-$(uname -m)"
curl -L $URL > /usr/local/bin/docker-machine curl -L $URL > /usr/local/bin/docker-machine