Home How to setup MicroK8s
Post
Cancel

How to setup MicroK8s

In this tutorial, I’ll guide you through the process of setting up MicroK8s on Ubuntu 24.04. MicroK8s is a lightweight, fast, and simple Kubernetes distribution that is perfect for development, prototyping, and testing. Let’s get started!

Step by Step Guide

Install MicroK8s

First, install MicroK8s on your machine. Open your terminal and run the following command:

1
sudo snap install microk8s --classic

Enable MicroK8s addons

MicroK8s comes with several addons. While you don’t need to enable all of them, here are a few that are commonly used that will enhance your experience:

1
microk8s enable dns dashboard registry storage ingress

Check the status of MicroK8s

To check the status of MicroK8s and make sure it is ready, run the following command:

1
microk8s status --wait-ready

If everything is in order, you should see a message indicating that MicroK8s is ready.

Access the Kubernetes dashboard

To access the Kubernetes dashboard, create a proxy to the dashboard by running:

1
microk8s dashboard-proxy

This will allow you to access the Kubernetes dashboard.


Conclusion

That’s it for now! You’ve successfully set up MicroK8s on your Ubuntu machine. Stay tuned for more tutorials where we’ll deploy a simple application using MicroK8s. Happy coding!

This post is licensed under CC BY 4.0 by the author.