When a deployment is run and there is some issue with the containers coming up there is not much information in the pipeline execution to debug what happened.
It will be really helpful if we can include additional diagnostic information in the pipeline execution, for example the output of the following:
kubectl get pod <podName> -o=jsonpath='{.status.conditions}' | jq .
kubectl get pod <podName> -o=jsonpath='{.status.containerStatuses}' | jq .
Another example for helpful information is someoutput information like below:
kubectl get pod [pod]-o jsonpath='{range .status.conditions[*]}{.type}={.status}{"\t"}{.lastTransitionTime}{"\t"}{.reason}{"\t"}{.message}{"\n"}{end}'
once the timeout for k8s step hits, or maybe every 5 minutes to show the current statuses if it is taking too long.
Created by amit.jha@harness.io
·