I'm using VS Code with Docker for Desktop to develop a Kubernetes operator. Testing with the "hello-world" or "guestbook" samples works fine. But when I try to debug my own container, the connection to the dlv debugger fails to come up: I get strange error messages and an error pop-up from VS Code.
Port forwarding pod/irs-operator-76d8594b75-rxcp4 in namespace edgelm, remote port 56268 -> http://127.0.0.1:56269
[operator]2023-03-01T08:56:14Z error layer=rpc writing response:write tcp 127.0.0.1:56268->127.0.0.1:47372: use of closed network connection
Forwarding container irs-operator-76d8594b75-rxcp4/operator to local port 56269.
failed to port forward pod-irs-operator-76d8594b75-rxcp4-edgelm-56268, port 56269 is taken, retrying...
Streaming logs from pod: irs-operator-76d8594b75-rxcp4 container: operator
Checking the ports with lsof shows two kubectl processes doing port forwarding:
How can I analyze this and get the debugger up to work?
PS: asking this question on the #cloud-code Slack channel seems not possible without an @google.com e-mail address.
Extension version: 1.21.3
VS Code version: Code 1.75.1 (Universal) (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:59.000Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: No
Type: Bug
Context
I'm using VS Code with Docker for Desktop to develop a Kubernetes operator. Testing with the "hello-world" or "guestbook" samples works fine. But when I try to debug my own container, the connection to the dlv debugger fails to come up: I get strange error messages and an error pop-up from VS Code.
Checking the ports with lsof shows two kubectl processes doing port forwarding:
How can I analyze this and get the debugger up to work?
PS: asking this question on the #cloud-code Slack channel seems not possible without an @google.com e-mail address.
Extension version: 1.21.3 VS Code version: Code 1.75.1 (Universal) (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:59.000Z) OS version: Darwin arm64 22.3.0 Modes: Sandboxed: No
System Info
|Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 24)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|4, 7, 9| |Memory (System)|32.00GB (0.07GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|