Get Namespace Resource Inventory
get_namespace_resourcesFetch a flat inventory of all core resources in one Kubernetes namespace in a single call, including pods, services, configmaps, secrets metadata, gateways, HTTPRoutes, PVCs, and service accounts.
Instructions
Fetch a flat tabular inventory of all core resources in one namespace in a single call.
Returns cluster_id, namespace, and separate lists for pods, services, configmaps, secrets (metadata only: name, type, and key names — secret values are never decoded), gateways, httproutes, pvcs, and serviceaccounts. Large namespaces may return sizable payloads.
Use when you need a complete inventory of objects in one namespace. Prefer get_namespace_map to see dependency edges between those resources, get_network_topology or get_storage_topology for focused traffic or storage graphs, or get_pod_details for deep diagnostics on a single pod.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cluster_id": "<cluster_id>",
"namespace": "<namespace>"
},
"name": "get_namespace_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | Target Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on the cluster. | |
| cluster_id | Yes | Unique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pods | No | Pods in the namespace with phase, readiness, restarts, node, and age. | |
| pvcs | No | PersistentVolumeClaims with status, capacity, storage class, and bound volume. | |
| secrets | No | Secret metadata only (name, type, key names, age). Plaintext secret values are never returned. | |
| gateways | No | Gateway API Gateways (`available` flag plus `items`). | |
| services | No | Services with type, cluster IP, ports, external IPs, and selectors. | |
| namespace | No | Namespace inspected. | |
| cluster_id | No | Cluster identifier queried. | |
| configmaps | No | ConfigMaps with name, key names, and metadata. | |
| httproutes | No | Gateway API HTTPRoutes (`available` flag plus `items`). | |
| serviceaccounts | No | ServiceAccounts configured in the namespace. |