microk8s.reset doesn't clean up volumes
See original GitHub issueI attempted to remove the microk8s snap, and it hung on Save data of snap "microk8s" in automatic snapshot set
. After investigating a bit, it looks like microk8s.reset doesn’t clean up volumes, and I had many of them left over:
$ sudo du -sh /var/snap/microk8s/common/
37G /var/snap/microk8s/common/
With paths like this: /var/snap/microk8s/common/default-storage/kubeflow-database-a6dbbcb2-mariadb-0-pvc-a75a4c3b-6b61-11e9-bf3c-e86a6466b483/
After running sudo rm -rf /var/snap/microk8s/common/*
, removing the microk8s snap worked great.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:9 (8 by maintainers)
Top Results From Across the Web
microk8s.reset doesn't clean up volumes · Issue #488 - GitHub
I attempted to remove the microk8s snap, and it hung on Save data of snap "microk8s" in automatic snapshot set. After investigating a...
Read more >Command reference - MicroK8s
{restore,backup} backup and restore operations. Description: Available on 1.19+ releases, this command allows for backing up and restoring the dqlite based ...
Read more >Troubleshooting - MicroK8s
Ensure the hostname of your machine name does not contain capital letters or underscores. Kubernetes normalizes the machine name causing its registration to ......
Read more >Recover from lost quorum - MicroK8s
This process does not recover any data you have in PVs on the lost nodes. ... Restart MicroK8s services ... Cleanup the lost...
Read more >Configuring MicroK8s services
MicroK8s brings up Kubernetes as a number of different services run through ... you will need to edit the corresponding file and then...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess this issue can be closed since release of v1.16.0 (920) ?
Relate-to: https://github.com/ubuntu/microk8s/pull/616
@knkski this is somewhat expected. We are not removing persistent volumes unless you do a
microk8s.disable storage
and answer “Yes” to the respective question. The reasn for not cleaning up persistent volumes without confirmation is that you may have some data you may want to keep. Having said that, we may want to have a flag on themicrok8s.reset
to clean persistent volumes as well. What do you think?