Azure/Bridge-To-Kubernetes

Host File Entries Missing In Presence of Dapr

Opened this issue · 8 comments

Describe the bug
When I use bridge to kubernetes (no isolation) without dapr, I see many host file entries added

Hosts file updated.
Service 'REDACTED1' is available on 127.1.1.11:8080.
Service 'REDACTED2' is available on 127.1.1.12:8080.
Service 'REDACTED3' is available on 127.1.1.13:8080.
Service 'REDACTED3' is available on 127.1.1.14:8080.
Container port 8080 is available at localhost:8080.

As a result, my debug process can only communicate to other k8s services if the communication does not go through dapr

If I then stop bridge then add dapr (dapr init -k), then restart bridge (no isolation) I only get host file entries added

Hosts file updated.
Service 'DAPR' is available on 127.0.0.1:55049.
Service 'DAPR' is available on 127.0.0.1:55050.
Container port 8080 is available at localhost:8080.

As a result, my debug process can only communicate to other k8s services if the communication goes through dapr

The services in my cluster use a combination of dapr and non-dapr communication patterns, and thus in both of the setups I have partially working communication.

There are recorded demos such as this, that seem to imply this was once possible (note how host file entries contain dapr and non-dapr mappings):
https://youtu.be/rxwg-__otso?si=9YbUKqfXYrstLUdh&t=197

Mention the platform you are using
Windows 10.0.19045 Build 19045 | VSCode 1.83.1 | Bridge v2.0.120231004 | .NET 7 | minikube

To Reproduce
Steps to reproduce the behavior:

  1. Run bridge to kubernetes (no isolation) without dapr (kubectl delete namespace dapr-system, restart pods with existing sidecars, remove dapr services). Observe host file entries
  2. Run bridge to kubernetes (no isolation) with dapr (dapr init -k, restart pods without existing sidecars). Observe host file entries

Expected behavior
Both dapr and non dapr services are exposed via host file

Screenshots
Can provide if needed

Logs:
WithDaprLogs.zip
WithoutDaprLogs.zip

Desktop (please complete the following information):

  • OS: [Windows 10.0.19045 Build 19045]
  • Browser [N/A]
  • Version [v2.0.120231004]

Additional context
One of the microservices is a StatefulSet if that matters.

@messnerdev Thanks for raising this issue, I will check the demo and logs, I will get back once I triage the issue further.

In my testing yesterday, I realized the host file entries also depend on which service I debug with Bridge to Kubernetes. Here's a more explicit summary:

Attaching to the Deployment Service without a dapr sidecar (and all dapr infrastructure removed ) I see

Hosts file updated.
Service 'Deployment' is available on 127.1.1.11:8080.
Service 'StatefulSetAReplica0' is available on 127.1.1.12:8080.
Service 'StatefulSetAReplica1' is available on 127.1.1.13:8080.
Service 'StatefulSetBReplica0' is available on 127.1.1.14:8080.
Container port 8080 is available at localhost:8080.

Attaching to the Deployment Service with a dapr sidecar (and dapr infrastructure present) I see

Hosts file updated.
Service 'DAPR' is available on 127.0.0.1:55049.
Service 'DAPR' is available on 127.0.0.1:55050.
Container port 8080 is available at localhost:8080.

Attaching to the StatefulSetA Service without a dapr sidecar (but the deployment service has a sidecar, and dapr infrastructure is present) I see

Hosts file updated.
Service 'Deployment' is available on 127.1.1.1:8080.
Service 'StatefulSetAReplica0' is available on 127.1.1.2:8080.
Service 'StatefulSetAReplica1' is available on 127.1.1.3:8080.
Service 'StatefulSetBReplica0' is available on 127.1.1.4:8080.
Service 'Deployment-dapr' is available on 127.1.1.5:9090.
Service 'Deployment-dapr' is available on 127.1.1.5:50002.
Service 'Deployment-dapr' is available on 127.1.1.5:3500.
Service 'Deployment-dapr' is available on 127.1.1.5:50001.
Container port 8080 is available at localhost:8080.

Hi @messnerdev, I checked the logs and see the below ports are called for withoutDapr.
PortListener created on 53647
PortListener started on 53647
Starting listening 53647 : 50052
Accept 53647 to 50052

For further analysis can you please provide the logs of LPK remote agents.

@Vidya2606, I'd be happy to, would you be able to provide guidance on how to obtain those?

@messnerdev you can get the logs from the pod (the service/pod you are trying to debug) running in your cluster with image lpkremoteagent.
ex: kubectl logs podname -n namespace
after starting the debug session.

I am having the same issue, so maybe I can also help out here.

Logs with Dapr (where only Dapr gets forwarded to the local machine):

Defaulted container "streaming" out of: streaming, daprd
2024-01-06T10:41:46.1999931Z | RemoteAgent | TRACE | ReversePortForwardConnector created for port 80\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:46.2165425Z | RemoteAgent | TRACE | ReversePortForwardConnector start listening on port 80
2024-01-06T10:41:46.2982259Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 80 accepted incoming request as stream 1.
2024-01-06T10:41:46.3016073Z | RemoteAgent | TRACE | AgentHub connnected for 80, id 1
2024-01-06T10:41:46.3087722Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 1 returns 0 bytes.
2024-01-06T10:41:46.3090889Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync finishes stream 1.
2024-01-06T10:41:46.3096905Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 1
2024-01-06T10:41:46.3098735Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 80 accepted incoming request as stream 2.
2024-01-06T10:41:46.3109975Z | RemoteAgent | TRACE | AgentHub connnected for 80, id 2
2024-01-06T10:41:46.3112668Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 2 returns 206 bytes.
2024-01-06T10:41:46.3124525Z | RemoteAgent | TRACE | AgentHub received for 80, id 2, size 206
2024-01-06T10:41:46.3139425Z | RemoteAgent | TRACE | AgentHub closed for 80, id 1
2024-01-06T10:41:46.7660557Z | RemoteAgent | TRACE | AgentHub disconnect for 80, id 2\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:46.7663847Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 2
2024-01-06T10:41:46.7665866Z | RemoteAgent | TRACE | AgentHub closed for 80, id 2
2024-01-06T10:41:46.7679773Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 80 accepted incoming request as stream 3.
2024-01-06T10:41:46.7682723Z | RemoteAgent | TRACE | AgentHub connnected for 80, id 3
2024-01-06T10:41:46.7684339Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 3 returns 209 bytes.
2024-01-06T10:41:46.7685345Z | RemoteAgent | TRACE | AgentHub received for 80, id 3, size 209
2024-01-06T10:41:46.7734475Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync exception 'Unable to read data from the transport connection: Operation canceled.' when invoking handler. Close.
2024-01-06T10:41:46.9250369Z | RemoteAgent | TRACE | AgentHub disconnect for 80, id 3\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:46.9252963Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 3
2024-01-06T10:41:46.9255017Z | RemoteAgent | TRACE | AgentHub closed for 80, id 3
2024-01-06T10:41:46.9263197Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync exception 'Unable to read data from the transport connection: Operation canceled.' when invoking handler. Close.
2024-01-06T10:41:47.5399145Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 80 accepted incoming request as stream 4.
2024-01-06T10:41:47.5402585Z | RemoteAgent | TRACE | AgentHub connnected for 80, id 4
2024-01-06T10:41:47.5404602Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 4 returns 209 bytes.
2024-01-06T10:41:47.5405739Z | RemoteAgent | TRACE | AgentHub received for 80, id 4, size 209
2024-01-06T10:41:47.7670726Z | RemoteAgent | TRACE | AgentHub disconnect for 80, id 4\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:47.7673116Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 4
2024-01-06T10:41:47.7674221Z | RemoteAgent | TRACE | AgentHub closed for 80, id 4
2024-01-06T10:41:47.7680103Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync exception 'Unable to read data from the transport connection: Operation canceled.' when invoking handler. Close.
2024-01-06T10:41:48.5015321Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 80 accepted incoming request as stream 5.
2024-01-06T10:41:48.5020350Z | RemoteAgent | TRACE | AgentHub connnected for 80, id 5
2024-01-06T10:41:48.5022971Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 5 returns 209 bytes.
2024-01-06T10:41:48.5024076Z | RemoteAgent | TRACE | AgentHub received for 80, id 5, size 209
2024-01-06T10:41:49.0551276Z | RemoteAgent | TRACE | AgentHub disconnect for 80, id 5\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:49.0554965Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 5
2024-01-06T10:41:49.0556394Z | RemoteAgent | TRACE | AgentHub closed for 80, id 5
2024-01-06T10:41:49.0561043Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync exception 'Unable to read data from the transport connection: Operation canceled.' when invoking handler. Close.
2024-01-06T10:41:50.5370638Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 80 accepted incoming request as stream 6.
2024-01-06T10:41:50.5373367Z | RemoteAgent | TRACE | AgentHub connnected for 80, id 6
2024-01-06T10:41:50.5379475Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 6 returns 209 bytes.
2024-01-06T10:41:50.5380780Z | RemoteAgent | TRACE | AgentHub received for 80, id 6, size 209
2024-01-06T10:41:50.7249235Z | RemoteAgent | TRACE | AgentHub disconnect for 80, id 6\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:50.7254081Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 6
2024-01-06T10:41:50.7256225Z | RemoteAgent | TRACE | AgentHub closed for 80, id 6
2024-01-06T10:41:50.7263041Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync exception 'Unable to read data from the transport connection: Operation canceled.' when invoking handler. Close.
2024-01-06T10:41:52.9424050Z | RemoteAgent | TRACE | RunServicePortForward: connector created for :3500.\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:52.9501734Z | RemoteAgent | TRACE | ServicePortForward connected for :3500, id 7
2024-01-06T10:41:53.0591232Z | RemoteAgent | TRACE | ServicePortForward send 140 bytes to stream 7\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:53.0602610Z | RemoteAgent | TRACE | Send 140 via 7
2024-01-06T10:41:53.0614308Z | RemoteAgent | TRACE | PortForwardConnector.HookupStreamData ReadAsync 7 returns 105 bytes.
2024-01-06T10:41:53.0622562Z | RemoteAgent | TRACE | ServicePortForward received 105 bytes from :3500, id 7.
2024-01-06T10:41:53.2070445Z | RemoteAgent | TRACE | RunServicePortForward: connector created for :50001.\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:53.2078321Z | RemoteAgent | TRACE | ServicePortForward connected for :50001, id 8
2024-01-06T10:41:53.2081048Z | RemoteAgent | TRACE | PortForwardConnector.HookupStreamData ReadAsync 8 returns 21 bytes.
2024-01-06T10:41:53.2082465Z | RemoteAgent | TRACE | ServicePortForward received 21 bytes from :50001, id 8.
2024-01-06T10:41:53.4339963Z | RemoteAgent | TRACE | ServicePortForward send 387 bytes to stream 8\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:53.4342684Z | RemoteAgent | TRACE | Send 387 via 8
2024-01-06T10:41:53.4354020Z | RemoteAgent | TRACE | PortForwardConnector.HookupStreamData ReadAsync 8 returns 39 bytes.
2024-01-06T10:41:53.4355530Z | RemoteAgent | TRACE | ServicePortForward received 39 bytes from :50001, id 8.
2024-01-06T10:41:53.4699605Z | RemoteAgent | TRACE | PortForwardConnector.HookupStreamData ReadAsync 8 returns 786 bytes.
2024-01-06T10:41:53.4703153Z | RemoteAgent | TRACE | ServicePortForward received 786 bytes from :50001, id 8.
2024-01-06T10:41:53.5267232Z | RemoteAgent | TRACE | ServicePortForward send 9 bytes to stream 8\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:53.5271023Z | RemoteAgent | TRACE | Send 9 via 8
2024-01-06T10:41:53.6623730Z | RemoteAgent | TRACE | ServicePortForward send 356 bytes to stream 8\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:53.6629268Z | RemoteAgent | TRACE | Send 356 via 8
2024-01-06T10:41:53.6635479Z | RemoteAgent | TRACE | PortForwardConnector.HookupStreamData ReadAsync 8 returns 47 bytes.
2024-01-06T10:41:53.6638054Z | RemoteAgent | TRACE | ServicePortForward received 47 bytes from :50001, id 8.
2024-01-06T10:41:53.6678014Z | RemoteAgent | TRACE | PortForwardConnector.HookupStreamData ReadAsync 8 returns 109 bytes.
2024-01-06T10:41:53.6680177Z | RemoteAgent | TRACE | ServicePortForward received 109 bytes from :50001, id 8.
2024-01-06T10:41:53.9545108Z | RemoteAgent | TRACE | ServicePortForward send 34 bytes to stream 8\nOperation context: <json>{"clientRequestId":"6f554351-326d-4a4f-9050-1bfdb230fe8a","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:43d4627c6847:644e3f3006f7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:41:38.4065404+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:41:53.9549460Z | RemoteAgent | TRACE | Send 34 via 8
2024-01-06T10:41:53.9560730Z | RemoteAgent | TRACE | PortForwardConnector.HookupStreamData ReadAsync 8 returns 17 bytes.
2024-01-06T10:41:53.9563050Z | RemoteAgent | TRACE | ServicePortForward received 17 bytes from :50001, id 8.

Logs without Dapr (where all available services are being forwarded):

2024-01-06T10:35:28.8145389Z | RemoteAgent | TRACE | ReversePortForwardConnector created for port 80\nOperation context: <json>{"clientRequestId":"d8c0a3ac-a7e7-43cb-9bf4-48762fbe03b2","correlationId":"a622986b-dc55-4d82-9d46-f79ddea3f82f1704531771553:6af8415c195c:a5cfa6019c5d","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-06T10:35:02.4008556+00:00","userAgent":"RemoteAgent/1.0.0.0","requestHttpMethod":null,"requestUri":null,"version":"1.0.0.0","requestHeaders":{},"loggingProperties":{"ApplicationName":"RemoteAgent","DeviceOperatingSystem":"Linux 5.15.0-1051-azure #59-Ubuntu SMP Wed Oct 11 18:49:16 UTC 2023","Framework":".NET 7.0.14","ProcessId":1,"TargetEnvironment":"Production"}}</json>
2024-01-06T10:35:28.9038142Z | RemoteAgent | TRACE | ReversePortForwardConnector start listening on port 80

Should we see an edited /etc/hosts file when running Bridge to Kubernetes? Mine doesn't seem to get touched.

@robinmanuelthiel if the variable "useKubernetesServiceEnvironmentVariables" in tasks.json file is set to "true" then the host files will not be touched. Can you check this once and try.