try to improve the debug pod
This commit is contained in:
parent
2238d43564
commit
a78783cf7a
|
@ -60,6 +60,7 @@ EOF
|
|||
kubectl wait --for=condition=Ready pod/$DEBUG_POD_NAME -n $NAMESPACE
|
||||
|
||||
# Open a shell inside the debug pod
|
||||
kubectl exec -it $DEBUG_POD_NAME -n $NAMESPACE -- /bin/sh
|
||||
kubectl exec -it $DEBUG_POD_NAME -n $NAMESPACE -- /bin/sh --stdin --tty
|
||||
|
||||
trap 'kubectl delete pod $DEBUG_POD_NAME -n $NAMESPACE' EXIT
|
||||
# Delete the debug pod when the shell session ends
|
||||
kubectl delete pod $DEBUG_POD_NAME -n $NAMESPACE
|
||||
|
|
Loading…
Reference in New Issue