diff --git a/.github/workflows/build-chart.yaml b/.github/workflows/build-chart.yaml index d15edf776..e793fc92d 100644 --- a/.github/workflows/build-chart.yaml +++ b/.github/workflows/build-chart.yaml @@ -111,7 +111,10 @@ jobs: if: failure() run: | for i in 1 2 3; do - kubectl port-forward paladin-node$-0 $((6060 + i)):6060 -n ${{ env.NAMESPACE }} & + POD_NAME="paladin-node$i-0" + echo "Port-forwarding $POD_NAME on port $((6060 + i))" + kubectl port-forward pod/$POD_NAME $((6060 + i)):6060 -n ${{ env.NAMESPACE }} & + curl "http://localhost:$((6060 + i))/debug/pprof/goroutine?debug=2" > goroutine_dump_node$i.txt curl "http://localhost:$((6060 + i))/debug/pprof/heap" > heap_profile_node$i.txt done