Using microk8s 1.18.2 on Ubuntu 20.04
Q1. Does microk8s keep track of all the change history? If so how to clean up all the old obsolete objects?
Q2. Is it normal that
microk8s reset last a long time? (Didn’t finished since +2 hour as of this writing)
This sounds like a bug so I filed an issue here: https://github.com/ubuntu/microk8s/issues/1237
Details for the context of the questions above:
If I played around with the cluster for a while, creating Custom Resouce Definition, namespaces, deploy delete deploy multiple times. Could microk8s keep track of the deleted pods, containers, etc around?
I suspect microk8s hold a lots of old stuffs somewhere. I have made some mistakes playing around with addons. Made some addon update outside of microk8s and ended up with partial update. My deployment no longer work. I wanted to restart fresh by reinstalling from scratch by:
$ microk8s reset $ sudo snap remove microk8s
It has been 30 minutes now and
microk8s reset is not yet finished. The logs on the console showed all the past deployments:
event "demo-deployment-8d687867c-xrzbn.1612be9efc4cdab5" deleted event "demo-deployment-8d687867c-xrzbn.1612be9f09e9545f" deleted event "demo-deployment-8d687867c-xrzbn.1612be9f09fde2e2" deleted ... etc ... (around hundreds lines like that) namespace "mydemo" deleted (console cursor blinking here)
I suppose the process is till working b/c the harddrive led is still blinking non stop.