DevTools Logo

Kubernetes Ingress Route Visualizer

Kubernetes Ingress Route Visualizer

Turn Ingress and Service YAML into a routing diagram, check rules against the Ingress API, and test which backend a request reaches.

Runs in your browser
Try an example

Ingress and Service YAML

Multiple documents separated by --- are supported. Nothing is sent anywhere.

Routes

Paste an Ingress manifest to see its routes

Add Service and Deployment YAML to check ports and selectors. Nothing leaves your browser.

Examples

TLS-labelled host route

Input
analyzeKubernetesIngress(ingress with tls hosts [example.com] secretName web-tls, services)
Output
{ host: "example.com", path: "/", pathType: "Prefix", service: "web", port: "80", tlsSecret: "web-tls" } + "TLS: web-tls" in mermaid

The tlsByHost map attaches the secret to every matching host route and labels the Mermaid edge.

Missing service warning

Input
analyzeKubernetesIngress(rules referencing service "absent")
Output
{ warnings: ["Service 'absent' was not found in the Service YAML"] }

Service names are looked up in the second YAML payload, so unknown backends warn instead of failing.

About this tool

Kubernetes Ingress Route Visualizer parses Ingress YAML with analyzeKubernetesIngress(ingressSource, servicesSource): TLS blocks are indexed per host via tlsByHost, every rule path resolves host, path, pathType, service name, and port (number, name, or legacy servicePort), and routes are sorted by host, path, service, and port for stable output.

Cross-resource context comes from optional Service and Deployment documents: missing backend names or ports raise warnings, unknown services warn with Service 'x' was not found in the Service YAML, and matching Deployment selectors (spec.selector against pod template labels) extend the graph from Service to Deployment to Pods.

Output is a Mermaid flowchart LR plus machine-readable routes: each edge carries host, TLS secret label, path, pathType, and service port, empty or malformed input yields Invalid YAML or No Ingress HTTP routes found warnings, and parsedDocuments counts every YAML document seen.

How to use this tool

  1. Paste manifests

    Pass Ingress YAML first and Service/Deployment YAML second — rules without HTTP paths warn and keep going.

  2. Read routes

    Each route gives host, path, pathType, service, port, and tlsSecret; missing names or ports show as (missing) with a warning.

  3. Render the graph

    Copy the mermaid field into any Mermaid renderer: Client → Ingress → per-host nodes → Service:port → Deployment/Pods.

Use cases

Reviewing ingress routing

List every host/path/port triple and its TLS secret before applying an Ingress change.

Auditing backend wiring

Catch missing ports, missing services, and selector mismatches from warnings.

Documenting traffic flow

Embed the generated Mermaid flowchart in runbooks and architecture reviews.

Common mistakes

Mistake:Assuming an omitted pathType means Prefix.

Fix:The tool preserves the manifest: absent pathType reports as (unspecified) — set Prefix or Exact explicitly.

Mistake:Expecting one Mermaid node per route.

Fix:Per-host Ingress nodes are deduplicated, so two paths on one host share a node with separate labelled edges.

Frequently asked questions

What does this tool do?

It runs analyzeKubernetesIngress on Ingress YAML plus optional Service/Deployment YAML, returning sorted routes (host, path, pathType, service, port, tlsSecret), a Mermaid flowchart, warnings, and a parsedDocuments count.

How are TLS, pathType, and missing backends handled?

TLS secrets attach per host and label Mermaid edges with TLS: name, pathType is preserved verbatim with (unspecified) fallback, and unknown services or missing names/ports warn instead of throwing.

Is my manifest uploaded or stored?

No. YAML parsing with js-yaml and graph building run entirely in your browser.

Why is a Service flagged as not found, or the graph empty?

Services resolve only from the second YAML payload — paste Service manifests to clear not-found warnings — and inputs with no Ingress HTTP routes report No Ingress HTTP routes found with an empty edge list.

References & standards