Get pod logs
get_pod_logsRead a pod's container logs to troubleshoot. For crash-looping pods, set previous=true to fetch logs from the dead instance where the real error lies.
Instructions
Read a pod's container logs. For a crash-looping pod set previous=true to read the instance that already died -- that is where the real error is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod_name | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | No | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |