Kubernetes · Arazzo Workflow
Kubernetes Troubleshoot a Failing Pod
Version 1.0.0
Find pods that are not Running, read the failing pod's detail, tail its logs, and pull namespace events.
View Spec
View on GitHub
AutomationCloud-NativeCNCFContainersDeploymentOpen-SourceOrchestrationScalingArazzoWorkflows
Provider
Workflows
troubleshoot-pod
Locate a non-Running pod and gather its detail, logs, and related events.
Lists pods filtered by a field selector on status.phase, and when a match is found reads the pod, tails its log, and lists namespace events to explain the failure. Ends early when every pod is healthy.
1
findUnhealthyPods
listNamespacedPods
List pods in the namespace filtered to those not in the Running phase. When nothing matches, the namespace is healthy and the flow ends.
2
readPodDetail
getNamespacedPod
Read the failing pod for its phase, node assignment, IPs, and conditions, which distinguish a scheduling failure from a container-level failure.
3
tailPodLog
readNamespacedPodLog
Tail the container log for an application-level cause such as a crash on startup or a failed dependency check.
4
readNamespaceEvents
listNamespacedEvents
List namespace events to surface the cluster-level cause the pod object alone does not carry, such as ImagePullBackOff or FailedScheduling.