What Is MicroK8s?
MicroK8s is a lightweight, snap-based Kubernetes distribution from Canonical. It provides a full Kubernetes experience with optional add-ons and is well suited for development, testing, and small production workloads on a Breeze.
Requirements
- A Breeze with at least 2 GB RAM
- Ubuntu 20.04 or later
- Snap package manager (pre-installed on Ubuntu)
Install MicroK8s
sudo snap install microk8s --classic --channel=1.28/stable
sudo usermod -aG microk8s $USER
newgrp microk8sVerify Installation
microk8s status --wait-ready
microk8s kubectl get nodesEnable Essential Add-ons
microk8s enable dns storage ingress dashboardThese add-ons provide CoreDNS for service discovery, default storage classes, an Nginx ingress controller, and the Kubernetes dashboard.
Set Up kubectl Alias
echo "alias kubectl='microk8s kubectl'" >> ~/.bashrc
source ~/.bashrcAccess the Dashboard
microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 --address 0.0.0.0Then visit https://your-breeze-ip:10443 in your browser.
Retrieve Dashboard Token
microk8s kubectl create token defaultMicroK8s vs K3s
- MicroK8s uses snap packaging with easy add-on management
- K3s uses a single binary with lower memory usage
- Both are certified Kubernetes distributions
MicroK8s is a solid choice when you want modular add-ons and snap-based updates on your Breeze.