get_pod_logs
Retrieve pod logs from a Kubernetes cluster via Rancher proxy. Specify cluster, namespace, pod name, and optional tail lines.
Instructions
Fetch logs from a pod via the Rancher Kubernetes proxy.
Args: cluster_id: Rancher-assigned cluster identifier. namespace: Namespace the pod lives in. pod_name: Name of the pod whose logs should be returned. tail_lines: Number of trailing lines to return (default 100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod_name | Yes | ||
| namespace | Yes | ||
| cluster_id | Yes | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |