Site icon The Perpetual Student

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
## https://microk8s.io/docs/command-reference#heading--microk8s-reset
sudo microk8s reset

# Remove Microk8s
sudo snap remove microk8s

Install Microk8s

Reinstall Microk8s with the following:


# Install Microk8s
## https://microk8s.io/docs/getting-started
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:
## https://microk8s.io/docs/getting-started

Exit mobile version