k8s_pods
Manage Kubernetes pods by listing, viewing details, retrieving logs with filtering, checking status, summarizing logs, and deleting pods with safety confirmations.
Instructions
Manage Kubernetes pods. Actions:
list: List pods in a namespace with optional label selector
get: Get pod details
delete: Delete a pod (requires confirm=true or dryRun=true)
get_logs: Get logs with filtering (severity, grep, time-based)
get_status: Get detailed pod status
summarize_logs: Get log summary statistics (90%+ token reduction)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| name | No | Pod name (required for most actions except list) | |
| namespace | No | Namespace (optional) | |
| labelSelector | No | Label selector for list action (e.g., "app=nginx") | |
| container | No | Container name for logs (optional) | |
| tail | No | Number of log lines to tail | |
| previous | No | Get logs from previous container instance | |
| sinceSeconds | No | Only return logs newer than this many seconds | |
| sinceTime | No | Only return logs after this ISO 8601 timestamp | |
| grep | No | Filter logs with regex pattern | |
| severityFilter | No | Only show logs at or above this severity level | |
| maxBytes | No | Maximum response size in bytes | |
| confirm | No | Confirm destructive action (required for delete unless dryRun=true) | |
| dryRun | No | Preview changes without executing (default: false) |