Zero-Ops Kubernetes with MicroK8s

Small Packages

Ice Cream On Top

When you get a bit more involved with MicroK8s, you can integrate an impressive list of available add-ons, such as those for address resolution and storage services:

$ microk8s enable dns storage

You can find the list of add-ons online [13]. If you're curious, the storage add-on offers "… a default storage class which allocates storage from a host directory," and dns installs the excellent CoreDNS. The documentation notes that this may be a mandatory requirement for some applications and that you should always enable it.

If you want to see which commands do what with MicroK8s, visit the Command Reference page [14]. Note you can add multiple nodes to the Kubernetes cluster with the instructions in the microk8s add-node link.

Among the basic commands, it is simple to stop MicroK8s and start it up again:

$ microk8s stop
$ microk8s start

If you want to tidy up your Raspberry Pi after your MicroK8s tests, you can remove the snap package,

$ snap remove microk8s

and you can tidy up the snap files:

$ apt purge snapd squashfs-tools

If you encounter any headaches, you should check the Troubleshooting page [12]. You will find a number of hints and tips and discover where to send bug reports.

The End Is Nigh

As you can see, this little Kubernetes distribution is quite something. It operates on almost no compute capacity and only appears to add roughly 700MB of RAM footprint without any workloads, relative to the 2.9GB noted previously, leaving lots of headroom for application workloads.

As the documentation suggests, with a Raspberry Pi, you might embed a Kubernetes distribution on a racing car to push engine metrics up to the cloud for analysis or integrate it with a satellite chassis for telemetry from Earth's orbit. It's intriguing to follow where this space is going, and I hope this look at MicroK8s has given you a welcome insight.

A zero-ops installation of Kubernetes is well worth learning for the future, to keep abreast of associated innovations.

The Author

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs

Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>


		<div class=