-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K0S run via docker-compose doesn't recover from host rebooting (single host) #5023
Comments
The logs of the k0s Docker container would be helpful, the logs of the failing containers, too. You could also add the |
Hi,
|
Could be that there are some stuck containers from previous runs. When shutting down k0s, it won't stop running pods/containers. You need to drain the node manually. Moreover, when running k0s in Docker, the cgroups hierarchy is possibly not properly respected, and container processes might keep running (or at least their cgroup hierarchy). I can imagine that this causes some troubles. Can you maybe try to add volumes for |
I can't drain the node manually since we are talking about unexpected machine restart/reboot. |
I've added the 2 new (anonymous) volumes and it didn't make any difference (the K0S failed to come up after the first restart), Attaching the updated sample compose file: |
Any advice on the subject would be very much appreciated... |
Before creating an issue, make sure you've checked the following:
Platform
Version
v1.30.4+k0s.0
Sysinfo
`k0s sysinfo`
What happened?
K0S running on a single node system (multiple services run by docker-compose) doesn't survive multiple reboots (it comes up after a few, and then it doesn't, or it doesn't come up at all after some reboots).
Attached below a sample docker-compose file to demo the problem.
Tried on Ubuntu 24.04 and CentOS 9 - same results
Steps to reproduce
docker compose -f aio-compose-sample.yaml up -d --wait
Expected behavior
The K0S should survive restarts, always.
Actual behavior
After a few restarts, the K0S breaks down:
Screenshots and logs
Kindly advise what logs are needed, and I'll be happy to add them.
Additional context
Adding a sample docker compose to demonstrate the problem:
aio-compose-sample.zip
Docker version info:
The text was updated successfully, but these errors were encountered: