telepresence icon indicating copy to clipboard operation
telepresence copied to clipboard

Intercept sidecar calls

Open alan994 opened this issue 3 years ago • 1 comments

Describe the bug I'm trying to connect telepresence with my app service running in the k8s pod. In the same pod, I have a sidecar (Dapr) that is communicating with my app on localhost. When I run telepresence intercept and call Dapr from my service running locally communication works because I ran kubectl port-forward dapr-service. So my local machine is seeing Dapr at localhost. But, when Dapr needs to call my application it calls it on localhost as well. It calls remote service, not my local service. I completely understand that telepresence intercept listens only for traffic going through the Kubernetes service that is pointing to my app container and it also requires a specific header (for the personal intercept), but I was hoping there is some way to make it work.

I already asked the Dapr community is there any config I can set so Dapr could call my service by Kubernetes service, not by localhost, but there is not.

image

To Reproduce Steps to reproduce the behavior:

  1. Create sample service and Dapr sidecar
  2. Connect Telepresence to your service
  3. Push some message to queue so Dapr will need to call your application
  4. You will not get this call redirected to your local service, instead, Dapr will call remote service

Expected behavior Call my local service

Versions (please complete the following information): Client: v2.4.5 (API v3) Root Daemon: not running User Daemon: not running

Windows 10 Azure Kubernetes Service

alan994 avatar Nov 16 '21 20:11 alan994

I would love to see telepresence support dapr sidecars fully too.

olitomlinson avatar Aug 01 '22 20:08 olitomlinson