# install snap
sudo apt install snapd
# install microk8s
snap install microk8s --classic
# enable dns, dashboard, and storage
microk8s.enable dns dashboard storage
microk8s.kubectl proxy
# access dashboard: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
# look for hints to complete installation, warnings would appear
microk8s.inspect
# IMPORTANT - if your services should call out of your cluster, you should set the iptables rule:
sudo iptables -P FORWARD ACCEPT
# copy kubeconfig to .kube, to use helm and kubectl with the microk8s instance
microk8s.kubectl config view --raw > ~/.kube/microk8s.config
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/microk8s.config
kubectl config view
kubectl config use-context microk8s
# install Helm/Tiller
sudo snap install helm --classic
helm init # make sure to use the context: microk8s
# Start/Stop commands
microk8s.start
microk8s.stop