Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Service port from ingress does not match any port on the service #304

Open
Fresa opened this issue Mar 15, 2022 · 0 comments
Open

Service port from ingress does not match any port on the service #304

Fresa opened this issue Mar 15, 2022 · 0 comments

Comments

@Fresa
Copy link

Fresa commented Mar 15, 2022

The RoutingManager gives following errors:
2022-03-15T15:45:36.6959228Z | RoutingManager | ERROR | Service port '5001' from ingress 'my-ingress' does not match any port on the service 'my-service'.

The ingress is managed by nginx ingress controller and works fine without bridge to kubernetes. Do you support networking.k8s.io/v1?

My startup probe does not seem to work which I'm guessing is related:
Startup probe failed: Get "https://10.244.0.146:5001/health": http: server gave HTTP response to HTTPS client

The RemoteAgent seems to get some sort of traffic:

2022-03-15T15:50:40.2882476Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 5001 accepted incoming request as stream 19.
2022-03-15T15:50:40.2885229Z | RemoteAgent | TRACE | AgentHub connnected for 5001, id 19
2022-03-15T15:50:40.2886642Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 19 returns 261 bytes.
2022-03-15T15:50:40.2887992Z | RemoteAgent | TRACE | AgentHub received for 5001, id 19, size 261
2022-03-15T15:50:40.2927602Z | RemoteAgent | TRACE | AgentHub Send for 5001, id 19 103 bytes\nOperation context: <json>{"clientRequestId":"3c2b9501-a92a-4f8d-8cba-30297da256a2","correlationId":"9d899d88-5bc4-4f15-a7dd-245178c57eaa:cd0dad697cf4:6c5543ca1f3e","requestId":null,"userSubscriptionId":null,"startTime":"2022-03-15T15:47:33.5858923Z","userAgent":"RemoteAgent/1.0.20210723.2","requestHttpMethod":null,"requestUri":null,"version":"1.0.20210723.2","requestHeaders":{},"loggingProperties":{"applicationName":"RemoteAgent","deviceOperatingSystem":"Linux 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021","framework":".NET Core 3.1.16","processId":1,"targetEnvironment":"Production"}}</json>
2022-03-15T15:50:40.2928927Z | RemoteAgent | TRACE | Send 103 via 19
2022-03-15T15:50:40.2931694Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 19 returns 0 bytes.
2022-03-15T15:50:40.2932775Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync finishes stream 19.
2022-03-15T15:50:40.2933849Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 19
2022-03-15T15:50:40.2935190Z | RemoteAgent | TRACE | AgentHub closed for 5001, id 19
2022-03-15T15:50:40.2951647Z | RemoteAgent | TRACE | AgentHub disconnect for 5001, id 19\nOperation context: <json>{"clientRequestId":"3c2b9501-a92a-4f8d-8cba-30297da256a2","correlationId":"9d899d88-5bc4-4f15-a7dd-245178c57eaa:cd0dad697cf4:6c5543ca1f3e","requestId":null,"userSubscriptionId":null,"startTime":"2022-03-15T15:47:33.5858923Z","userAgent":"RemoteAgent/1.0.20210723.2","requestHttpMethod":null,"requestUri":null,"version":"1.0.20210723.2","requestHeaders":{},"loggingProperties":{"applicationName":"RemoteAgent","deviceOperatingSystem":"Linux 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021","framework":".NET Core 3.1.16","processId":1,"targetEnvironment":"Production"}}</json>

Nothing reaches Visual Studio's debugger.

If I call the application directly from https://localhost:5001/health it reaches the debug breakpoint.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant