Installing MicroK8s

Installing MicroK8s

The following steps describe how to install MicroK8s. Perform these steps for each system intended for the cluster.
  1. Install MicroK8s using snap:
    sudo snap install microk8s --classic --channel=1.33/stable
  2. Set up command aliases for convenience:
    sudo snap alias microk8s.kubectl kubectl # This one must be applied sudo snap alias microk8s.kubectl k # This is optional as an abbreviation
  3. Add your user to the microk8s group:
    sudo usermod -aG microk8s $USER # Log out and back in, or run: newgrp microk8s
  4. Start MicroK8s:
    sudo microk8s start
  5. Wait for MicroK8s to be ready:
    sudo microk8s status --wait-ready