Last active
April 29, 2020 10:53
-
-
Save haphan/ea3700de12f326687f7bf8e229d23c65 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
set -xe | |
apt update | |
apt upgrade -y | |
# Stick to 1.15 branch until microk8s snap updates helm to 2.15.0 | |
snap install microk8s --classic --channel=1.15/stable | |
microk8s.status --wait-ready | |
microk8s.kubectl get nodes | |
microk8s.kubectl get services | |
microk8s.enable rbac | |
microk8s.status --wait-ready | |
microk8s.enable ingress dns | |
ufw allow http | |
ufw allow https | |
ufw allow ssh | |
ufw allow 16443/tcp | |
ufw default allow routed | |
ufw allow in on cbr0 && ufw allow out on cbr0 | |
ufw --force enable | |
microk8s.inspect | |
microk8s.enable helm | |
snap alias microk8s.kubectl kubectl | |
snap alias microk8s.helm helm | |
helm init | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment