Last active
November 21, 2018 12:27
-
-
Save aliva/04524bad88695b8c6b8a99e05c2faf9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# curl link-to-raw | bash | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install docker.io | |
# minikube | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
install minikube-linux-amd64 /usr/local/bin/minikube | |
rm minikube-linux-amd64 | |
# kubectl | |
export KUBECTL_VERSION=`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt` | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl | |
chmod +x kubectl | |
mv kubectl /usr/local/bin/kubectl | |
# completions | |
echo "alias k='kubectl'" > /etc/bash_completion.d/kubectl-alias | |
minikube completion bash > /etc/bash_completion.d/minikube | |
kubectl completion bash > /etc/bash_completion.d/kubectl | |
kubectl completion bash | sed 's/kubectl/k/g' > /etc/bash_completion.d/kubectl-k | |
# start | |
minikube start --vm-driver=none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment