Open billytrend-cohere opened 1 week ago
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 telepresence connect --docker
, then Telepresence will start a containerized daemon. This daemon will have direct access to the cluster resources. If you then could start your local dev cluster using --network container:<name of Telepresence daemon>
, then your local dev cluster would share that network.
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!
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