-
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
Flannel CNI / DNS Issues with in-cluster Service Names when "hostNetwork: true" #6880
Comments
I just upgraded to latest available on 1.25, and have better results:
I can now curl internal service:
No change to
I didn't see anything obvious within the release notes that would explain this. I do have a single node test cluster on the side I can still reproduce the original issue as it is still on |
@brandond could it be related to the containerd bug? |
I also encountered this problem. Only pods on the node that runing |
@baowj-678 that usually indicates a problem with your kernel dropping vxlan packets between nodes. This is caused by a bug in the kernel checksum offload code. See the ethtool command at flannel-io/flannel#1279 |
That issue was solved from flannel |
Thanks, I solved my problem by following this issue flannel-io/flannel#1279. |
Thanks all, looks like upgrade of K3S updated the embedded flannel which resolved my issue. Closing this. |
Environmental Info:
K3s Version:
Node(s) CPU architecture, OS, and Version:
Ubuntu 22.04.1 / Bare Metal
Cluster Configuration:
Describe the bug:
When I tried to enable
hostNetwork: true
for a pod, that pod is no longer able to resolve in-cluster DNS names. If I set bothhostNetwork: true
anddnsPolicy: ClusterFirstWithHostNet
then neither internal nor external DNS names work.With
hostNetwork: false
then both in-cluster and external DNS names work as expected.Steps To Reproduce:
Using default flannel:
From Control-Plane Service:
From Agent Service:
Expected behavior:
I expected to be able to resolve in-cluster and external DNS names with hostNetwork enabled.
No Host Networking: In-Cluster & External DNS Work
Just
hostNetwork: true
: In-Cluster Fails but External DNS WorksThis seems normal as the nameserver IP is the DNS for this LAN segment (for external DNS).
Both
hostNetwork: true
anddnsPolicy: ClusterFirstWithHostNet
: In-Cluster & External DNS FailWhile DNS fails, I can still curl the service directly and pod directly:
Not clear if this is helpful:
The text was updated successfully, but these errors were encountered: