MicroK8s is a CNCF-certified local Kubernetes cluster deployment and is designed to quickly and easily install a Kubernetes thread isolated from your local environment. As a snap-in, it runs all Kubernetes services (i.e. without virtual machines), while packing all the required set of libraries and files.

file

This isolation is achieved by packaging all binaries for Kubernetes, Docker.io, iptables, and CNI into a single Snap package (only available on Ubuntu and compatible distributions).

By installing Microk8 using snap, you can create a "clean" deployment of the latest versions of Kubernetes on your local computer at no additional cost.

The snap tool performs all necessary operations and can update all related binaries to the latest versions.

Microk8s installs and runs the following services by default:*

  • Api-server
  • Controller-manager
  • scheduler
  • kubelet
  • cni

Optional services, such as the Kubernetes dashboard, can be enabled or disabled with microk8s.enable and microk8s.disable commands.

List of available services:

  • Dns
  • Dashboard, which includes grafana and influxdb
  • Storage
  • Ingress, Istio
  • Registry
  • Metrics Server

file

To verify that the installation was successful, you can use the following commands to retrieve available nodes and available services, respectively:

microk8s.kubectl get nodes  
microk8s.kubectl get services  

~~~.shell
root@kvmde54-19861:~# microk8s.kubectl get nodes
NAME STATUS ROLES AGE VERSION
kvmde54-19861.fornex.org Ready <none>6m42s v1.18.2-41+b5cdb79a4060a3
root@kvmde54-19861:~# microk8s.kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.152.183.1 <none>443/TCP 6m55s
root@kvmde54-19861:~#
~~~</none></none>

Updated May 25, 2020