Cloud
Kubernetes
Installing MicroK8s

Installing Kubernetes

Installing Snap

apt install snapd

Install MicroK8s

sudo snap install microk8s --classic

Configure Firewall

ufw allow in on cni0 && sudo ufw allow out on cni0
ufw default allow routed

Addons

Toggle Addons

microk8s enable dns
microk8s enable storage

Available Addons

  • dns: Deploy DNS. This addon may be required by others, thus we recommend you always enable it.
  • dashboard: Deploy kubernetes dashboard.
  • hostpath-storage: Create a default storage class. This storage class makes use of the hostpath-provisioner pointing to a directory on the host.
  • ingress: Create an ingress controller.
  • gpu: Expose GPU(s) to MicroK8s by enabling the nvidia-docker runtime and nvidia-device-plugin-daemonset. Requires NVIDIA drivers to be already installed on the host system.
  • istio: Deploy the core Istio services. You can use the microk8s istioctl command to manage your deployments.
  • registry: Deploy a docker private registry and expose it on localhost:32000. The storage addon will be enabled as part of this addon.