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

Support resolution of DNS matching a container in cluster #513

Closed
Bengreen opened this issue Dec 8, 2023 · 2 comments
Closed

Support resolution of DNS matching a container in cluster #513

Bengreen opened this issue Dec 8, 2023 · 2 comments
Labels
enhancement 🎉 New feature or request

Comments

@Bengreen
Copy link
Contributor

Bengreen commented Dec 8, 2023

What is the new feature about?

when I use gefyra the DNS resolution solves for the current namespace but does not have the additional domains enabling resolution on services in other namespaces.

When testing if I provide the name as a FQDN then this work so it means the DNS resolution is working but the domains to search are missing.

Upon inspection of the /etc/resolv.conf file I see the following

search dev.svc.cluster.local
nameserver 127.0.0.11
options ndots:0

When I try to check a service in dev2 NS then it will fail eg.

curl http://minio.dev2

When I look at a typical container in the cluster it is missing the following search domains: svc.cluster.local cluster.local k8s

I manually updated /etc/resolv.conf to the following:

search dev.svc.cluster.local svc.cluster.local cluster.local k8s
nameserver 127.0.0.11
options ndots:0

After making the above update the curl now works

Why would such a feature be important to you?

yes it makes the gefyra container match a natural k8s pod with dns resolution across namespaces.

Anything else we need to know?

No response

@Bengreen
Copy link
Contributor Author

Bengreen commented Dec 8, 2023

PR proposed in #514

@Schille
Copy link
Collaborator

Schille commented Dec 11, 2023

Hi @Bengreen
Thank you for your suggestion and your contribution. I will have a look and let you know.

@SteinRobert SteinRobert added the enhancement 🎉 New feature or request label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🎉 New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants