-
Notifications
You must be signed in to change notification settings - Fork 79
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
In dual-stack mode --node-ip to kubelet only have one address #736
Comments
I don't think k0s passes any --node-ip flags to kubelet at all. According to the CLI flag's description, it defaults to IPv4. That's what you're seeing in your cluster, I suppose.
You could pass your own values via /cc @ncopa WDYT about this? |
@twz123 You are right. I specified
But for dual-stack it seems that you must specify "comma-separated dual-stack IP addresses" to get it right:
(ipv6 is missing) |
If it's connected to Not sure what to do here, since the IPv6 is not part of the k0sctl config at all. /cc @kke How would k0s or k0sctl know which IP to use if it isn't specified? Sure, there could be some magic auto-detection, but less magic is usually preferable. Would it make sense to make |
Yes, that works 😃
I removed installFlags:
- "--kubelet-extra-args=--node-ip=192.168.1.2,fd00::192.168.1.2" If For a better user experience, This problem should be documented in any case. I am happy with this work-around, and you may close this issue if you like, or keep it for reference. |
see also k0sproject/k0s#3954 |
Before creating an issue, make sure you've checked the following:
Platform
Version
vm-001 ~ # k0s version v1.30.2+k0s.0
Sysinfo
`k0s sysinfo`
What happened?
In dual-stack mode only the ipv4 address is specified in the "--node-ip" parameter to kubelet. This causes the node object to have only an ipv4 address.
Steps to reproduce
ps ... | grep kubelet
and check the "--node-ip" parameterk0s kubectl get node $(hostname) -o json | jq .status.addresses
. Only ipv4 is presentExpected behavior
Both ipv4 and ipv6 addresses should be specified in "--node-ip", example:
Then, when the worker joins, the node object will have both addresses:
Actual behavior
Only ipv4 is specified in "--node-ip", and the node object only gets an ipv4 address:
Screenshots and logs
No response
Additional context
I install with
k0sctl
.k0scat.yaml
The text was updated successfully, but these errors were encountered: