get_pods
Fetch pod information as one summary row per pod: name, namespace, phase, ready (x/y), restarts, node, age and reason (the first container that is not ready, e.g. CrashLoopBackOff or ImagePullBackOff). Not-ready and failed pods sort first. Filter by namespace/name/labels; a list needs namespace or all_namespaces=true and carries total, returned, truncated and scope. Use this to check pod health, find crashing pods, or verify deployments. For logs, use get_pod_logs instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Specific pod name to fetch. If provided, returns only that pod. | |
| limit | No | Maximum number of pods to return. | |
| namespace | No | Kubernetes namespace to list. A list needs either this or all_namespaces=true; a named read (name) needs neither. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| all_namespaces | No | Set true to list every namespace on the cluster deliberately. Omit it and pass namespace to list one namespace; a list with neither is refused (error_code scope_required). | |
| label_selector | No | Label selector to filter pods (e.g., 'app=nginx,tier=frontend'). |