Last active
August 18, 2020 09:50
-
-
Save felipecruz91/952631b5b5e5cb7196675540aa32839e 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 | |
# Install Docker | |
sudo apt-get update | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
sudo usermod -aG docker $1 | |
# Install Microk8s | |
sudo snap install microk8s --classic --channel=1.14/stable | |
sudo usermod -a -G microk8s $1 | |
sudo snap alias microk8s.kubectl kubectl | |
#sudo echo "source <(kubectl completion bash)" >> ~/.bashrc | |
#sudo microk8s.kubectl config view --raw > $HOME/.kube/config | |
sudo iptables -P FORWARD ACCEPT | |
sudo microk8s.enable dns storage registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment