-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
Can't access telepresence dns on 127.0.0.53 from within kubernetes cluster #3732
Comments
Why would you try to access telepresence from within the cluster? It's usually the other way around. |
Interesting we have been using it successfully to connect our local dev cluster to our prod cluster. This works fine on macos but not on ubuntu because of the apparent differences in how the networking works. |
I still don't understand what is is you're doing here. Are you running the Telepresence command line interface from within a pod in order to give that pod access to another cluster? |
No we're running on the host. The use case that has worked for us so far for local dev is to
The issues we're having is that when running on linux in a codespace, the host network does not appear to be shared in the same way. From what I understand the main issue is the dns running on the loopback address in linux. My main consideration for investigation is to maybe set up a dns proxy on the host that is available on a non-loopback ip so that the local cluster can use that proxy. Let me know what you think of that setup or if this is wildly outside of telepresence's expected usecase; very grateful for your help so far. |
Here's one idea, not sure if it's feasible though. But if you connect to your remote cluster with The advantage with this setup is that it will work regardless of what OS you run on the host, and it will not affect the host network at all (no need for root, the /dev/net/tu,m or NETADMIN capabilites). |
interesting thanks I'll try this! |
@billytrend-cohere can you please try the new 2.21.0 release and check if things have improved? We've done some work on getting everything to work smoothly with codespaces. |
oo exciting, will try |
I'm working in codespaces. I have a Kubernetes cluster within the codespace that needs to be able to access telepresence. Right now, I can connect to telepresence ips from within kubernetes but I cannot resolve domain names.
This is because telepresence DNS appears to resolve on 127.0.0.53. Unfortunately when I configure kubernetes to use 127.0.0.53 as a dns, the request just loops because I guess 127.0.0.53 within kubernetes doesn't point to the host.
Some ideas I had to resolve this issue.
Many thanks in advance
The text was updated successfully, but these errors were encountered: