Get pod logs
get_pod_logsRetrieve recent logs from a container in a Kubernetes pod by providing pod name and namespace; optionally adjust tail lines and inspect previous terminated containers.
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) |