-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Issues with Alpine and DNS in Kubernetes #1526
Comments
Which one would you prefer? Would, say, using this https://github.com/GoogleContainerTools/distroless/blob/master/base/README.md resolve the issue? |
I'm not sure actually, I'm still trying to grasp the actual problem. We'd still want a small image, of course. The distroless looks interesting. Also, can it run from Looking at the The distroless static seems to have |
If using We do it like this here: https://github.com/banzaicloud/pipeline/blob/master/Dockerfile#L39 |
Okay, so I successfully built Dex with Google's distroless as its base. However, I'm still seeing issues with my DNS lookups. In other words, the issues I'm having is unrelated to the Alpine issue above, and there's probably an issue in my Kubernetes cluster. I'm closing this for now, but let me know if you want me to publish a pull request for the distroless anyway. I think it has its benefits, even if it didn't solve my issue. :) |
We've experienced some issues with Alpine and DNS-lookups in Kubernetes. I'm not sure exactly where the problem lies, but some DNS-lookups are really slow (and is a multiple of 2,5, indicating some sort of timeout that is being hit).
Some info can be found here:
gliderlabs/docker-alpine#255
As this seems to be a general problem for Alpine, it affects a lot of our containers. Dex is one of them. Is it possible to build Dex with another image as the base?
Or maybe someone knows a workaround that can be used?
We have a quite low refresh time (5 minute), so an LDAP call is called every 5 minutes when working with Kubernetes. This LDAP call is slow due to the slow DNS lookup.
The text was updated successfully, but these errors were encountered: