Install & Uninstall Microk8s (Ubuntu 22.04.2 LTS)

The instructions to remove Microk8s are for Ubuntu 22.04.2 LTS but may work with other Ubuntu versions. See Microk8s documentation for more info.

If you find any errors in this post, please contact me.

Remove Microk8s

I’ve ran into several errors removing Microk8s. I found that you have to reset Microk8s first and then remove. The official documentation for resetting Microk8s can be found here.

The cleanest way to remove Microk8s:

# Reset Microk8s
sudo microk8s reset

# Remove Microk8s
sudo snap remove microk8s

Install Microk8s

Reinstall Microk8s with the following:

# Install Microk8s
sudo snap install microk8s --classic --channel=1.27

# Join your user to microk8s Linux group
sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube

# The rest of the commands are optional but good to run for verification:

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: