-
Notifications
You must be signed in to change notification settings - Fork 367
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
tls error after system reboot #5124
Comments
Hi, we haven't seen this before so we believe this has to be triggered by something in your environment. What happens if you reboot and instead of:
You just do:
IMPORTANT, don't do this immediately after the reboot, give it some time, maybe 5 minutes after the reboot because we suspect it may be a timing issue regarding network interfaces not being ready just yet. Finally would it be possible to provide k0s logs after the reboot? |
FWIW, I installed latest k0s on Sunday.
Cluster definition
FWIW, it did get fixed after I did:
After a few mins (all the time it took me to edit this post :) ) all the nodes became available on their own:
|
This really sounds like a timing issue, k0s maybe starts before the network has assigned the address to interface(s). In which infra are you guys seeing this? The k0s generated systemd unit does have dependency on
Maybe in your case that is not enough for some reason. 🤔 To test if that is the case, you could try to add some
That could give us some hints if this is actually the case. You can also look for the critical chain of services with something like:
That shows a tree in which order things got started in reboot. Note: you need to analyse this after the reboot, NOT after the manual restart of k0s. This is for example what I see on Ubuntu:
|
@ckt114 That is the default cluster internal svc address for the API |
@jnummelin I added the ExecStartPre to This is the hierarchy of my k0scontroller service.
This is my k0scontroller.service
|
Seems that systemd does not like to write files like this. I should've tried to actually to run this myself as it actually fails:
🤦 So just remove the file direction, what you'll get is the output of that command in the journal logs. Your service hierarchy looks correct to me. |
Before creating an issue, make sure you've checked the following:
Platform
Linux 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Version
v1.31.1+k0s.1
Sysinfo
`k0s sysinfo`
What happened?
After I restart the OS I get the error below when running any kubectl command.
To fix it I had to run
again then kubectl works again.
This is my
/etc/k0s/k0s.config
file.After the system I rebooted and kubectl throws tls error and I ran
sudo k0s kubeconfig admin
I saw that the sever cluster address is127.0.0.1
instead of192.168.2.10
. Also, I don’t know where the10.96.0.1
IP in the error message comes from.Steps to reproduce
Expected behavior
K0s should retain the api.address from the installation config.
Actual behavior
K0s reverted the api address to 127.0.0.1 after system reboot instead of retaining the custom 192.168.2.10 api address.
Screenshots and logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: