Closed muten84 closed 1 month ago
Hi @muten84, thank you for reporting this issue
How are you stopping MicroK8s? microk8s stop
should run the following and kill all running containers on your cluster, https://github.com/canonical/microk8s/blob/77dbbc9595b841af6052f8fe537a2eaa73fcb460/microk8s-resources/actions/common/utils.sh#L925-L926
Can you check two things on a system where this occurs:
microk8s stop
# look for running container processes
ps -fea | grep runc
Also, can you try running the following commands and observe their outputs?
sudo systemctl kill snap.microk8s.daemon-kubelite.service --signal=SIGKILL
sudo systemctl kill snap.microk8s.daemon-containerd.service --signal=SIGKILL
Thank you!
sudo snap stop microk8s --disable
then
sudo reboot
Not an ideal solution, but may help someone.
Same here, the containers are still running after "microk8s stop". Any news?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please reopen. We're in version "MicroK8s v1.31.2 revision 7394" and the issue is still there.
Please reopen. Confirmed here with 1.31.2
Summary
I've successfully installed microk8s with a basic default configuration. This is the output of microk8s status:
I have on the same host a nginx server bound to port 80 and 443 with a proxy-pass configuration that forwards requests to an ingress LB that relies on Traefik. I deployed a service that starts a spring boot app written in java and when i run microk8s it starts all pods then when i try to reach the service from the external dns nginx use the proxy-pass directive and i can see the response using external dns. But when i run microk8s stop despite the expected behavior should be to stop all running pods i still can reach the spring boot app.
Furthermore i tried to invoke locally on the server the following commands:
Despit i run microk8s stop the service is still reacheble!!
The proxy-pass directive is enabled trough this configuration in nginx:
What Should Happen Instead?
My expected result should be that after stop all containers will be shutdown, actually only the undeploy trough delete of deployments and service works.
Reproduction Steps
inspection-report-20230515_094738.tar.gz