Steps for setup of Micro K8S server clusters. Taken from the official tutorial.
Install MicroK8S on each server.
sudo snap install microk8s --classic
Wait until installation is completed:
microk8s status --wait-ready
On an initial node, run the add-node
command to create the join string and use it on each node:
microk8s add-node
This command needs to be executed again for each node (the join string is unique).
Install the required addons:
microk8s enable cert-manager dashboard dns ha-cluster helm helm3 hostpath-storage ingress metrics-server storage rbac
After installing the RBAC addon, the admin account needs permissions assigned:
kubectl create clusterrolebinding default-admin --clusterrole cluster-admin --serviceaccount=default:default