telepresenceio / telepresence

Local development against a remote Kubernetes or OpenShift cluster
https://www.telepresence.io
Other
6.43k stars 507 forks source link

Unable to intercept services when using telepresence intercept #3630

Open DcWire opened 1 week ago

DcWire commented 1 week ago

Describe the bug I was running optscale (optscale) an opensource project and wanted to make some changes on it and wanted to setup a development environment. I was successfully able to deploy optscale on an EC2 instance but Im facing issues while trying to intercept a service. There’s a service called ngui which is the frontend for optscale, which also shows up when I use the command telepresence list but when I do telepresence intercept it says the server could not find the requested resource. The other services also show the same issues so basically I cannot intercept any service.

Telepresence logs telepresence_logs.zip

To Reproduce Steps to reproduce the behavior:

  1. I installed telepresence using the steps mentioned in the link Telepresence Quickstart | Ambassador Telepresence (getambassador.io)

  2. On typing telepresence connect : Untitled

  3. Then telepresence helm install telepresence helm upgrade gives me: Untitled (1)

  4. telepresence intercept ngui --port 4000:ngui telepresence intercept ngui gives me an error : Untitled (2)

Expected behavior I should have been able to intercept the required services successfully.

Versions:

Additional context

  1. telepresence list gives me: Untitled (5)

  2. kubectl get service ngui --output yaml gives me : Untitled (6)

cindymullins-dw commented 4 days ago

You can try using symbolic port name. with a numeric port, telepresence is forced to inject an init-container to modify iptables. That is known to fail in some situations. Please seethis section in our troubleshooting guide.

If that doesn't help, can you please run telepresence loglevel debug, then reproduce the problem and provide the logs from telepresence gather-logs.