-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Windows] CoreDNS pod IP is not updated on Windows node #10901
Comments
I've tested this behavior on all current releases: 1.28.14/1.29.9/1.30.5/1.31.1, and the issue is present everywhere.
/var/lib/rancher/k3s/agent/etc/cni/net.d/20-flannel.conflist
If you try to resolve any name, it will fail.
|
We don't currently build or support K3s on Windows, so you're probably going to be on your own in figuring this one out for the moment. It sounds like an issue with kube-proxy though, as that's what's responsible for maintaining local connectivity to cluster service endpoints. |
Well, I was looking on the pull request above, and #9313, and was under impression that at least some work is ongoing for Windows support, and issues like one I've described here should be reported :) |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
Not stale |
Microsoft was doing the bulk of the work to get K3s on Windows working, as part of their work on https://learn.microsoft.com/en-us/azure/aks/hybrid/aks-edge-overview. After the alpha release, they seemed to have abandoned the project of natively supporting K3s on Windows in favor of simply using their linux based Mariner VM. |
Environmental Info:
K3s Version:
k3s version v1.28.13+k3s1 (47737e1)
go version go1.22.5
Node(s) CPU architecture, OS, and Version:
Windows 2019 server
Cluster Configuration:
3 Linux master servers, 1 Windows worker
Describe the bug:
Pods on Windows worker are incorrectly resolving kube-dns service ip to non-existend pod ip, thus unable to resolve cluster records.
Steps To Reproduce:
Expected behavior:
Workloads in pod are able to resolve both cluster and external records
Actual behavior:
Ping request could not find host c.cc. Please check the name and try again.
Additional context / logs:
I've set up tcpdump capture on all Linux nodes, and saw that all DNS requests are going to 10.42.0.41 IP, but CoreDNS pod did have a different IP, 10.42.0.6. After restarting CoreDNS pod, and Windows pods, new IP was assigned for CoreDNS, but Windows pod was still looking for 10.42.0.41. I've checked Endpoints/EndpointSlices on Linux nodes, and all addresses there were up to date.
Now, on Windows node I've enabled debug logging on k3s, searched for 10.42.0.41, and found the line starting with this:
The relevant part (whole line size is 120k) after formatting looks like this
Looking for id 6F995C07-0B4A-4CFB-BA6E-C62DD48A554D in
hnsdiag list all
output shown that this item indeed attached to kube-dns serviceBut where this "Network Response" is coming from, and why it contains outdated data, is not clear for me.
The text was updated successfully, but these errors were encountered: