World Congress 2023 • Oct 6, 2023

Debugging Go: from zero to Kubernetes

Michele Caci

Struggling to troubleshoot isolated Go applications in Kubernetes? Learn how to leverage ephemeral containers and Delve for secure, live debugging without disrupting production traffic.

Pause
Mute Enter Fullscreen
#1 about 3 min

Core principles of live debugging and data-driven tools

Live execution tracking complements logs and metrics by interacting directly with the running application.

#2 about 2 min

Risks of attaching debuggers in production environments

Disrupting real traffic can cause production incidents unless traffic is properly redirected or conditional breakpoints are applied.

#3 about 3 min

Running local debugging sessions with Delve

Compiling code and attaching to processes via a command-line interface allows direct control over the execution flow.

#4 about 5 min

Configuring dual Docker containers for Go debugging

Isolating the application and debugger into separate containers requires copying source code alongside specific tooling.

#5 about 4 min

Enabling Linux capabilities and sharing process namespaces

The sys_ptrace capability and process namespace sharing allow an isolated debugger container to trace external application processes.

#6 about 3 min

Deploying multi-container debugging pods in Kubernetes

Adding a debugger container directly to a deployment configuration wastes cluster resources if permanently attached.

#7 about 3 min

Using ephemeral containers with kubectl debug

Injecting temporary ephemeral containers into running pods enables on-demand debugging without altering deployment configurations.

#8 about 2 min

Summarizing the Kubernetes live debugging workflow

Live debuggers are complementary tools that augment standard monitoring by exposing underlying runtime execution logic.

#9 about 4 min

Strategies for port forwarding and traffic redirection

Community questions cover local port forwarding, disabling compiler optimizations, and selectively routing test traffic to debug pods.

Matching moments

1:33 min

Debugging serverless container applications in Kubernetes production environments

Alex Soto Alex Soto · LIVE

2:43 min

Debugging challenges in scaled cloud deployments

Developersteve Coochin · LIVE

4:26 min

Injecting ephemeral debug containers into running Kubernetes pods

Tom Crecelius Tom Crecelius · World Congress 2026 Europe

2:53 min

Introduction to live debugging and code hot swapping

Marco Sussitz Marco Sussitz · World Congress 2026 Europe

2:11 min

Debugging challenges inside closed source cloud native environments

Gerta Sheganaku +1 · World Congress 2023

4:31 min

Addressing local development challenges with Podman Desktop

Stevan Le Meur Stevan Le Meur · World Congress 2024