ssh to workspace pod in kubernetes failing
We installed coder OSS successfully in our kubernetes cluster. Everything is running fine, workspaces can be created from the CLI and the webpage, terminal from the webpage to the pod is working, but ssh to connect eg vscode to the workspace is not working.
In the workspace pod I get the following log when trying to connect:
Does anyone have an idea whats going on?
In the workspace pod I get the following log when trying to connect:
2022-12-12 12:06:56.012 [DEBUG] (tailnet) <./tailnet/conn.go:352> (*Conn).UpdateNodes adding node {"node": {"id": 2792323418590812384, "as_of": "2022-12-12T12:06:56.004793Z", "key": "nodekey:493279de99b08aa5f4bad702c29ad6a77678189e93d245641a5219269038cc6e", "disco": "discokey:3bf6fb4c4887b74a1d3d568619c0d464eb8214b757cfcf9440866777d026d936", "preferred_derp": 999, "derp_latency": {"999-v4": 0.024973997}, "addresses": ["fd7a:115c:a1e0:439f:a931:a2bf:7f4d:dd9/128"], "allowed_ips": ["fd7a:115c:a1e0:439f:a931:a2bf:7f4d:dd9/128"], "endpoints": ["193.170.91.32:45391", "10.4.24.216:41076", "172.17.0.1:41076", "172.18.0.1:41076", "172.19.0.1:41076"]}}
2022-12-12 12:06:56.013 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 [v1] magicsock: got updated network map; 8 peers
2022-12-12 12:06:56.013 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 wgengine: Reconfig: configuring userspace WireGuard config (with 0/8 peers)
2022-12-12 12:06:56.013 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 [v1] wgengine: Reconfig done
2022-12-12 12:06:59.262 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 derphttp.Client.Recv: connecting to derp-999 (coder)
2022-12-12 12:06:59.307 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 magicsock: [0xc0004183c0] derp.Recv(derp-999): derphttp.Client.Recv connect to region 999 (coder): GET failed: <nil>: DERP requires connection upgrade
2022-12-12 12:06:59.307 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 derp-999: [v1] backoff: 4815 msec2022-12-12 12:06:56.012 [DEBUG] (tailnet) <./tailnet/conn.go:352> (*Conn).UpdateNodes adding node {"node": {"id": 2792323418590812384, "as_of": "2022-12-12T12:06:56.004793Z", "key": "nodekey:493279de99b08aa5f4bad702c29ad6a77678189e93d245641a5219269038cc6e", "disco": "discokey:3bf6fb4c4887b74a1d3d568619c0d464eb8214b757cfcf9440866777d026d936", "preferred_derp": 999, "derp_latency": {"999-v4": 0.024973997}, "addresses": ["fd7a:115c:a1e0:439f:a931:a2bf:7f4d:dd9/128"], "allowed_ips": ["fd7a:115c:a1e0:439f:a931:a2bf:7f4d:dd9/128"], "endpoints": ["193.170.91.32:45391", "10.4.24.216:41076", "172.17.0.1:41076", "172.18.0.1:41076", "172.19.0.1:41076"]}}
2022-12-12 12:06:56.013 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 [v1] magicsock: got updated network map; 8 peers
2022-12-12 12:06:56.013 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 wgengine: Reconfig: configuring userspace WireGuard config (with 0/8 peers)
2022-12-12 12:06:56.013 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 [v1] wgengine: Reconfig done
2022-12-12 12:06:59.262 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 derphttp.Client.Recv: connecting to derp-999 (coder)
2022-12-12 12:06:59.307 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 magicsock: [0xc0004183c0] derp.Recv(derp-999): derphttp.Client.Recv connect to region 999 (coder): GET failed: <nil>: DERP requires connection upgrade
2022-12-12 12:06:59.307 [DEBUG] (tailnet.wgengine) <./tailnet/conn.go:712> Logger.func1 derp-999: [v1] backoff: 4815 msecDoes anyone have an idea whats going on?