get_failure_details
Explain why a Kubernetes Job failed by inspecting pod exit states, Events, and log tails, then returning a synthesized root cause with supporting evidence.
Instructions
Explain why a Job failed. Finds its pods, reads container exit state, Kubernetes Events and a log tail (secrets masked), and returns a synthesized cause such as 'container OOMKilled at 340Mi, exit code 137' followed by the evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | Yes | Name of the failed Job (e.g. from get_run_history) | |
| namespace | Yes | Namespace of the Job | |
| tail_lines | No | Log lines to return |