Get Full Namespace Dependency Map
get_namespace_mapBuild an end-to-end dependency graph for all workloads, routing, configs, Secret metadata, ServiceAccounts, and PVCs in a Kubernetes namespace to reveal how pods connect to their configs and volumes.
Instructions
Build the end-to-end dependency graph of all workloads, routing, configs, secret metadata, ServiceAccounts, and PVCs in one namespace.
Returns cluster_id, namespace, ingress_available, gateway_api_available, nodes (tagged with app_group, kind, status, meta; Secret nodes expose metadata only), and directed edges connecting Ingress/Gateway/Services -> Pods, Workloads -> Pods, and ConfigMaps/Secrets/PVCs/ServiceAccounts -> Pods.
Use to understand how every resource in a namespace is wired together and which configs or volumes a pod depends on. Prefer get_network_topology or get_storage_topology for narrower single-path graphs, get_namespace_resources for flat lists, or get_cluster_workload_map for cluster-wide node-to-pod placement.
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_map"
}
}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 |
|---|---|---|---|
| edges | No | Directed dependency edges connecting traffic, workload controllers, pods, ConfigMaps, Secrets, ServiceAccounts, and PVCs. | |
| nodes | No | Full namespace resource graph nodes (`id`, `label`, `kind`, `group`, `app_group`, `status`, `meta`). Secret nodes expose metadata only. | |
| namespace | No | Namespace inspected. | |
| cluster_id | No | Cluster identifier queried. | |
| ingress_available | No | True when Ingress listing is available. | |
| gateway_api_available | No | True when Gateway API CRDs are installed. |