question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

microk8s services restarting randomly

See original GitHub issue

My microk8s instance seemed to go unavailable from time to time and now I saw this in the logs:

$ grep Stopping /var/log/syslog
Jul  7 12:03:15 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-containerd...
Jul  7 12:04:15 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-apiserver...
Jul  7 12:04:16 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-proxy...
Jul  7 12:04:16 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-kubelet...
Jul  7 12:04:19 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-containerd...
Jul  7 12:05:19 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-apiserver...
Jul  7 12:05:19 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-proxy...
Jul  7 12:05:19 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-kubelet...
Jul  7 12:43:11 smokey systemd[1]: Stopping User Manager for UID 1000...
Jul  7 12:43:55 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-containerd...
Jul  7 12:44:56 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-apiserver...
Jul  7 12:44:56 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-proxy...
Jul  7 12:44:56 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-kubelet...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-apiserver...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-apiserver-kicker...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-containerd...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-controller-manager...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-etcd...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-kubelet...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-proxy...
Jul  7 12:59:25 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-scheduler...
Jul  7 14:03:16 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-containerd...
Jul  7 14:03:33 smokey systemd[1]: Stopping User Manager for UID 1000...
Jul  7 14:04:17 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-apiserver...
Jul  7 14:04:17 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-proxy...
Jul  7 14:04:17 smokey systemd[1]: Stopping Service for snap application microk8s.daemon-kubelet...

Systemd restarts the microk8s services randomly. Any idea what’s going on here?

inspection-report-20190707_141239.tar.gz

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
balchuacommented, Jul 7, 2019

@andrenarchy microk8s comes with a systemd service apiservice-kicker which detects network changes and then restarts the daemons automatically.

You can stop the apiservice-kicker like this. sudo systemctl stop snap.microk8s.daemon-apiserver-kicker.service. but this service restarts when there is an upgrade or when you do microk8s.stop or microk8s.start.

0reactions
stale[bot]commented, Jun 4, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

microk8s services restarting randomly · Issue #534 - GitHub
@andrenarchy microk8s comes with a systemd service apiservice-kicker which detects network changes and then restarts the daemons automatically.
Read more >
Troubleshooting - MicroK8s
You may experience the API server being slow, crashing or forming an unstable multi node cluster. Such problems are often traced to low...
Read more >
Microk8s 1.21 fails to start after controlled cluster shutdown ...
Hi all, I have a 6-node microk8s cluster that's been running pretty ... Since then, we have been unable to fully restart the...
Read more >
MicroK8s networking broke randomly : r/kubernetes - Reddit
Looks like on the first run it is starting up too quickly and never recovers. Once I force it to restart I can...
Read more >
microk8s pods are restarting frequently on my raspberry pi ...
MIcroK8s has a service that periodically check for changes on your network, reconfigures and restarts the API server if needed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found