add kubectl
This commit is contained in:
parent
377014b8df
commit
e83d04d8b4
3
homedir.skel/.local/profile.d/100.kubectl-completion.sh
Normal file
3
homedir.skel/.local/profile.d/100.kubectl-completion.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if which kubectl 2>&1 > /dev/null ; then
|
||||||
|
source <(kubectl completion bash)
|
||||||
|
fi
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user