Last active
February 10, 2020 15:05
-
-
Save fdonzello/ecc4ee68e7da5b31ec7f9386bdc05692 to your computer and use it in GitHub Desktop.
Provision ubuntu with Minikube
This file contains hidden or 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/sh | |
sudo apt update | |
sudo apt install -y curl docker.io | |
sudo setfacl --modify user:$(whoami):rw /var/run/docker.sock | |
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.6.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ | |
sudo minikube start --vm-driver=none | |
alias minikube="sudo minikube" | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
sudo groupadd docker || true | |
sudo usermod -aG docker $(whoami) | |
echo "alias minikube='sudo minikube'" >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment