-
Notifications
You must be signed in to change notification settings - Fork 321
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
[eks] [issue]: Windows Pods not able to resolve internal k8s services #236
Comments
@JasonChinsen can you do me a favor and run the following commands from within one of the Windows Pods?
From within the pod (It will probably fail)
Then try this. You should most likely have an empty SuffixSearchList
Then try running the below to set the SuffixSearch List (this is what's in my /etc/resolv.conf in the pods of the Linux nodes)
Does the nslookup now succeed to mongo and to kubernetes.default? This isn't a fix but merely a troubleshooting step. |
@CarmenAPuccio, thank you for the quick response, it does look like there was an issue with the DnsClientGlobalSetting. Is there a way to set this correctly when launching windows pods? Server: kube-dns.kube-system.svc.cluster.local
Address: 10.100.0.10
*** kube-dns.kube-system.svc.cluster.local can't find kubernetes.default: Non-existent domain
|
@JasonChinsen Let me chat with the teams internally and we'll get back to you. Just out of curiosity, what is your cluster version? |
Hello @CarmenAPuccio
both Windows and Linux nodes are running are on version |
@JasonChinsen / @CarmenAPuccio , thanks for pointing this out, while generating CNI config, DNS suffixes are left out. In the next AMI release we'll fix it. For now, you can manually edit the config in your windows nodes. Here are the steps
These steps will set the suffix list automatically when new pods are created. { |
Thank you! |
Any timelime on the availability of the updated AMIs? We're currently working around this using a startup PowerShell script chained through ENTRYPOINT. |
@somujay any eta for a new AMI that does not have this issue? |
Hello, I've been trying to add Windows nodes to my existing Linux EKS cluster and it seems that no matter what I do I can't get the pods to resolve DNS, or even find the default DNS server (kubedns/172.20.0.10). I've tried everything listed in this forum to no avail. I've tried changing the DNS to the VPC-default servers, which allows for external connectivity, but this doesn't allow me to access pods in the cluster. Does anyone have any ideas? |
Hi Joe, Thanks! |
Hey @somujay, |
Restart-ser
Synced with Joe. it was aws-auth configmap wasn't applied correctly. Closing the issue. |
I am having the same issue. Can you explain what was the aws-auth confimap issue? |
@krishnaputhran |
@jg-par can you please explain as which configmap you are referring? Is there any special configmaps need to be created as part of adding windows nodes to the existing linux cluster? appreciate your hekp |
@somujay @JasonChinsen @CarmenAPuccio I have one issue where windows pods are not able to perfrom For example I have nginx-abc & nginx-efg deployment in namespace nginx-abc pod is not able to perfrom Here is my
Server Version
|
in the latest document from AWS its not stated anymore and the issue still exist with EKS 1.21 (with win nodes) |
@gfrid Did you have any word back on this? I'm also experiencing this in EKS 1.21 and also the latest 1.24. I've attempted the @CarmenAPuccio's (#236 (comment)) troubleshoot but it also doesn't seem to work after setting the suffix list. The only way I've been able to get dns resolution is to explicitly set the dns server in the container to the core-dns service a (192.168.x.x) in kube-system using |
Tell us about your request
I am running a mixed k8s cluster based on eks-windows-preview
I have deployed mongodb on Linux nodes and I am not able to resolve the service from within the Windows Pod.
Which service(s) is this request for?
EKS
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
service:
Windows:
Linux:
Are you currently working around this issue?
How are you currently solving this problem?
Additional context
Anything else we should know?
Attachments
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)
The text was updated successfully, but these errors were encountered: