Skip to content
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 issues in K8 environment due to Alpine base image #644

Open
YordanPavlov opened this issue Feb 18, 2021 · 0 comments
Open

Comments

@YordanPavlov
Copy link

We are running the 'kafka-docker' image as an init container in our AWS clusters, for creating needed topics. Very often we have a DNS resolution issue like this:

java.nio.channels.UnresolvedAddressException
	at sun.nio.ch.Net.checkAddress(Net.java:101)
	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:622)
	at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277)
	at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:287)
	at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1021)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1064)

this goes on for quite some time bringing the whole deploy into a Crash Loop. Resolving the same DNS from another container works. From our experience and various threads online this is related to DNS issues on Alpine Linux images. Where possible we replace such images with Ubuntu based ones and have such issues resolved immediately and for good. Is anyone also having such problems, and if so is an Ubuntu based image considered?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant