Get pod logs
get_pod_logsFetch recent logs from a specific Kubernetes pod container to diagnose issues. Use namespace, container, and tail lines to target the relevant output.
Instructions
Fetch recent logs from a pod container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pod name | |
| context | No | kube-config context to target (defaults to current-context) | |
| previous | No | Fetch logs from the previous terminated container | |
| container | No | Container name (defaults to first container) | |
| namespace | Yes | Namespace | |
| tailLines | No | Lines from the end (default 200) |