k8s-pilot

by bourbonkk

pod_logs

Retrieve logs from a Kubernetes pod or specific container, specifying context, namespace, pod name, and optional parameters like tail lines or previous instance logs.

Instructions

Get logs from a pod or a specific container within the pod.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name container: Optional container name (if pod has multiple containers) tail_lines: Number of lines to retrieve from the end of the logs previous: Whether to get logs from a previous instance of the container

Returns: Pod logs

Input Schema

NameRequiredDescriptionDefault
containerNo
context_nameYes
nameYes
namespaceYes
previousNo
tail_linesNo

Input Schema (JSON Schema)

{ "properties": { "container": { "default": null, "title": "Container", "type": "string" }, "context_name": { "title": "Context Name", "type": "string" }, "name": { "title": "Name", "type": "string" }, "namespace": { "title": "Namespace", "type": "string" }, "previous": { "default": false, "title": "Previous", "type": "boolean" }, "tail_lines": { "default": 100, "title": "Tail Lines", "type": "integer" } }, "required": [ "context_name", "namespace", "name" ], "title": "pod_logsArguments", "type": "object" }
ID: varavj97rf