Skip to content

Instantly share code, notes, and snippets.

@danton721
Last active April 2, 2024 15:44
Show Gist options
  • Save danton721/731908379ff5e2d3bf33cc84b35ae799 to your computer and use it in GitHub Desktop.
Save danton721/731908379ff5e2d3bf33cc84b35ae799 to your computer and use it in GitHub Desktop.

1. Send debug signal on running pod

Inside the running pod run the following command: kill -s SIGUSR1 1

2. Port forward debugger pod

In computer, run the following command to forward debug port: kubectl port-forward -n <namespace> <pod-name> <pc-port>:9229

3. Connect with node debugger

Access the node inspect tool edge://inspect or chrome://inspect (Edge proved to be better at it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment