Skip to content

Instantly share code, notes, and snippets.

@szydan
Last active April 16, 2024 08:19
Show Gist options
  • Save szydan/01b946e7774c564b35709b4fe2e546a4 to your computer and use it in GitHub Desktop.
Save szydan/01b946e7774c564b35709b4fe2e546a4 to your computer and use it in GitHub Desktop.
Ho to locally debug IT test in kubernetes
How to connect to paused pod running IT tests
make sure no other process is running on 5606 locally
Find the id of the pod and run
kubectl -n jenkins get pods
kubectl -n jenkins port-forward pr-investigate-pr-17131-12-fc1z0-3nzrp-1r2n4 5606:5606
open your browser
You can also inject debugging container into running pod
kubectl debug myapp-pod -it --image=ubuntu --target=myapp-container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment