-
Notifications
You must be signed in to change notification settings - Fork 790
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
DNS resolution failing on EKS slaves #5468
Comments
I did find that resolv.conf contains this, which does not appear correct:
I would have expected something like (this was on a pod I manually launched):
|
I discovered the issue; we disabled the docker bridge in EKS (see awslabs/amazon-eks-ami#183). Updating skaffold.yaml to configure docker builds to use host networking resolved this:
|
Found the answer : https://stackoverflow.com/a/57934460/747579 Just add |
@andyhopp We'll be supporting Kaniko images very soon but it appears a Docker workaround is there with @abdennour's comment. Ref - #5433. Please close this issue if you're satisfied. P.S. - Remember Ipswitch? |
Ha, I realized it was you on the other issue I had opened! I'll hit you up outside this issue so I don't annoy people who are trying to solve problems :) |
You saved my day man , thank you |
Summary
DNS resolution appears to be broken when running a docker build on EKS. I have followed the Kubernetes DNS resolution troubleshooting guide at https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/, and I added logging to CoreDNS. While I see the queries for the container images used by the Dockerfile, I do not see any of the queries that should be issued from running the commands in the Dockerfile.
Steps to reproduce the behavior
jx create quickstart
, choosing the "aspnet-app" sample and follow prompts for GitHub orgs, etc.Expected behavior
Build proceeds without errors.
Actual behavior
Build fails with the below in the log:
Jx version
The output of
jx version
is:Jenkins type
Kubernetes cluster
EKS created using guide linked above
Operating system / Environment
MacOS
The text was updated successfully, but these errors were encountered: