Getting started with MicroK8s
Getting started with MicroK8s is straightforward. Let’s learn how to install and access your MicroK8s cluster.
Installation
Installing MicroK8s on Ubuntu is incredibly straightforward:
ken@monster:~$ sudo snap install microk8s --classic
ken@monster:~$ sudo usermod -a -G microk8s $USER
ken@monster:~$ newgrp microk8s
This command installs the latest stable version of MicroK8s from the Snap Store.
Verification
After installation, check the status of your MicroK8s cluster and wait for it to be fully operational:
ken@monster:~$ microk8s status --wait-ready
This command ensures all Kubernetes components are running correctly and the cluster is ready.
Accessing the cluster
MicroK8s conveniently bundles kubectl, the Kubernetes command-line tool. However, you need to configure it to interact with your MicroK8s cluster:
ken@monster:~$ microk8s kubectl config view --raw > $HOME/.kube/config
These commands...