Back to blog

See how a namespace fits together: the Kubernetes topology graph in Kubexer

December 1, 2026 8 min read Kubexer Team
TopologyVisualizationNamespacesTroubleshooting

Inherit an unfamiliar namespace and the first job is building a mental model of it. Which Deployments are there, which ReplicaSet is current, which Service selects which pods, what an Ingress routes to, which ConfigMaps and Secrets each pod mounts, which PVC backs which volume. Every answer is available from kubectl, but each one is a separate command, and the relationships live in your head.

Kubexer's Topology view, a Pro feature, draws that model for you: one namespace as an interactive graph, built from the live state of the cluster.

How people do it today

  • kubectl get all -n shop, which, despite the name, misses ConfigMaps, Secrets, PVCs, Ingresses and ServiceAccounts.
  • kubectl describe on each object and following references by hand: a Service's selector, a pod's volumes, an owner reference.
  • Plugins such as kubectl tree, which show ownership but not selection or mounts.

None of these is wrong. They just leave the joining to you.

Opening a topology

Topology lives under Workbench → Topology in the sidebar, or press Cmd/Ctrl+K and run "Go to Topology". There is also a shortcut from the Namespaces page: each row has a topology button ("Show namespace in topology").

Click + in the header and pick a namespace. It opens as a tab. Each tab is one namespace with its own layout, filter and search, so you can keep shop, payments and ingress-nginx open side by side and switch between them. Opening a namespace that already has a tab focuses that tab, and Cmd/Ctrl+W closes the active one.

The status line reads like "shop · Live · 37 resources". The graph is fed by the same live watches the rest of the app uses, so a pod that crashes or a Deployment that scales shows up without a refresh. Only the active tab is watched; the others keep their view and catch up when you switch back.

What the graph draws

Fifteen kinds, in four groups:

  • Workloads: Deployments, ReplicaSets, StatefulSets, DaemonSets, Jobs, CronJobs, Pods.
  • Network: Services, Ingresses.
  • Config: ConfigMaps, Secrets, ServiceAccounts, HPAs.
  • Storage: PVCs, and the PersistentVolumes they are bound to.

Edges come from the objects themselves:

  • Owns, from owner references: Deployment → ReplicaSet → Pod, CronJob → Job → Pod.
  • Selects: a Service's selector matching a pod's labels.
  • Routes: an Ingress backend naming a Service.
  • Mounts: a pod referencing a ConfigMap or Secret.
  • Binds: a pod using a PVC, and a PVC bound to a PV.
  • Runs as: a pod's ServiceAccount.
  • Scales: an HPA's scale target.

Secrets appear by name only. The graph never reads or shows their values.

Health at a glance

Each node card shows the kind, the name and a health dot: green for ready, yellow for in progress or degraded, red for failing, grey where health does not apply (Services, ConfigMaps and so on). The rules are the ones you would apply yourself: a pod waiting in CrashLoopBackOff or ImagePullBackOff is red, a pending pod is yellow, a Deployment with fewer ready replicas than desired is yellow and with none is red, a PVC stuck in Pending is yellow and a Lost one is red. The minimap is coloured the same way, so in a large namespace the red corner is easy to spot.

Working with the graph

Start with controllers, then add detail

A new tab shows only the workload controllers: Deployments, ReplicaSets, StatefulSets, DaemonSets, Jobs and CronJobs. That keeps the first view readable. Open Show kinds to add Pods, Services, Ingresses, config and storage. The filter shows how many of each kind exist, so you know what adding Pods will cost before you click. Edges are only drawn between visible nodes, which means the filter also controls which relationships you see. Reset returns to the default.

Layouts

The Layout view select has three options:

  • Compact (default) lays out each connected group separately and packs them into a grid. Good for namespaces with several unrelated apps.
  • Top-down and Left-right lay out the whole namespace as one hierarchy. Good for following a request from Ingress to pod.

You can drag nodes. Positions are kept as the cluster changes; the layout is only recomputed when nodes or edges are added or removed, not when a pod's health flips, so the picture does not jump around while you are looking at it.

Find, collapse, open

  • Find resource… highlights nodes whose name or kind matches and dims the rest.
  • Right-click a controller to fold its pods into a "+N" badge on the owner. A Deployment with 30 replicas becomes one card.
  • Click any node to open its normal detail drawer, with YAML, events, logs and actions.

Three questions it answers quickly

  1. "Why is this Service not getting traffic?" Show Services and Pods. A Service with no selects edge has a selector that matches nothing.
  2. "What breaks if I delete this ConfigMap?" Show Config and Pods, search for the name, and follow its mounts edges.
  3. "Which ReplicaSet is the live one?" Keep the default view. The old ReplicaSets have no pods under them once you enable Pods; the current one does.

What it does not do

  • One namespace per tab. There is no cluster-wide graph, and Nodes, Namespaces, CRDs and NetworkPolicies are not drawn.
  • It is a configuration and ownership graph, not live traffic. For traffic between services, Kubexer has a separate Pro feature, Service Flows.
  • There is no export of the graph, and tabs are not kept across restarts.

Try it

Topology is part of Pro in Kubexer, and it is included in the free trial. Open your busiest namespace, add Pods and Services, and right-click a Deployment to collapse it. For the RBAC side of the same namespace, see the Security Matrix.