Last active
April 16, 2024 08:19
-
-
Save szydan/01b946e7774c564b35709b4fe2e546a4 to your computer and use it in GitHub Desktop.
Ho to locally debug IT test in kubernetes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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