Where Does MicroK8s Store Cluster Data?
MicroK8s keeps snap data in /var/snap/microk8s with addons, certs, and the dqlite database inside.
Last updated
MicroK8s stores everything under the snap data tree at /var/snap/microk8s. Certificates, addon manifests, and the datastore live in versioned current and common folders there. The classic snap layout keeps strict and classic installs comparable.
Kubeconfig for admins generates through microk8s config rather than sitting in the tree. Back up the data folder with the cluster stopped for cold restores. Exact inner folders have moved across MicroK8s tracks, so confirm on your channel.
Where MicroK8s stores this, by platform
/var/snap/microk8s
Certs, datastore, and addon state under current and common. Generate admin kubeconfig with microk8s config. Stop the cluster before cold backups.
Frequently asked questions
How do I get the MicroK8s kubeconfig?
Run microk8s config and save the output to ~/.kube/config. That grants full admin access, so store it like a password. Refresh it after cert rotation.
Where are MicroK8s addon manifests?
Under the snap data tree versioned by track. Enable addons with microk8s enable rather than hand edits. Disabled addons leave their data behind.
Notice an outdated path? Let us know.