Get Namespace Network Topology
get_network_topologyBuild an inbound network traffic graph for a Kubernetes namespace to trace ILB/Ingress, Gateway, HTTPRoute, Service, and Pod paths, helping debug ingress routing and Service-to-Pod selector wiring.
Instructions
Build the inbound network traffic graph (ILB/Ingress -> Gateway -> HTTPRoute -> Service -> Pod) for one namespace.
Returns cluster_id, namespace, gateway_api_available, nodes (with id, label, kind, status, meta), and directed edges (source -> target) tracing traffic paths into pods.
Use when debugging ingress routing, Gateway API HTTPRoutes, or Service-to-Pod selector wiring. Prefer get_storage_topology for PV/PVC volume wiring, get_namespace_map for all resource dependencies together, or get_namespace_resources for flat tabular lists.
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_network_topology"
}
}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 routing edges (`source` -> `target`). | |
| nodes | No | Graph vertices (`id`, `label`, `kind` in ilb/ingress/gateway/httproute/service/pod, `status`, `meta`). | |
| namespace | No | Namespace inspected. | |
| cluster_id | No | Cluster identifier queried. | |
| gateway_api_available | No | True when Gateway API CRDs (Gateway and HTTPRoute) are installed on the cluster. |