telepresence
telepresence copied to clipboard
Intercept sidecar calls
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.
To Reproduce Steps to reproduce the behavior:
- Create sample service and Dapr sidecar
- Connect Telepresence to your service
- Push some message to queue so Dapr will need to call your application
- 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
I would love to see telepresence support dapr sidecars fully too.