Open waahhhh opened 8 months ago
(ip route list scope global | grep -E "\b(172|10|192\.168)\.") || (ip route list | grep -m1 default)
This is the command k0sctl uses to detect the private interface. What does the output of that look like?
$ echo $((ip route list scope global | grep -E "\b(172|10|192\.168)\.") || (ip route list | grep -m1 default))
10.244.1.0/24 dev tun-852356528 proto 17 src 89.XX.XX.XX
$ echo $(ip route list scope global | grep -E "\b(172|10|192\.168)\.")
10.244.1.0/24 dev tun-852356528 proto 17 src 89.XX.XX.XX
$ echo $(ip route list | grep -m1 default)
default via 89.XX.XX.XX dev eth0 proto static
So, I think you don't have a private interface and it picks up eth0 as the fallback but only on the first round 🤔
Facing the same issue, is there a workaround while it isn't fixed?
EDIT: Workaround for me was to use IP addresses instead of hostnames in the list of hosts. Not ideal to me, I'd rather use domains, but this works.
My nodes only have 1 private network interface (loopback excluded), therefore I performed the installation automatically. Now I wanted to upgrade k0s to a newer version and got a validation error.
Therefore I validated the schema with the current and new k0s version. Everything is valid. The log contains the following message:
The configuration section looks as follows and has not changed.
At first I thought that the problem is related to the openSSH definition, because the address (
waahhhh-earth
) is not specified in the hostname or in the rest of the configuration.Only after reading the output several times I realized that the wrong network interface was used.
The interface (
tun
) was set up by the Kubernetes cluster and k0sctl now considers it to be the right network. The problem could be solved with the following adjustment:If you read the entire output, it's very confusing at first. Maybe we could make some improvements here so that other users don't face the same problem.
This is what the complete output looks like, in which the actual problem is hiding as a valid info message.
The current network interfaces are: