Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
K

KubeDiagrams

> 云原生
Open source

Generate Kubernetes architecture diagrams from Kubernetes manifest files, kustomization files, Helm charts, helmfiles, and actual cluster state

2.6K stars0 likes5 views
WebsiteGitHub

About

Generate Kubernetes architecture diagrams from Kubernetes manifest files, kustomization files, Helm charts, helmfiles, and actual cluster state

KubeDiagrams

Generate Kubernetes architecture diagrams from Kubernetes manifest files, kustomization files, Helm charts, helmfile descriptors, and actual cluster state.

There are several tools to generate Kubernetes architecture diagrams, see here for a detailed list and comparison. Compared to these existing tools, the main originalities of KubeDiagrams are the support of:

  • most of all Kubernetes built-in resources,
  • any Kubernetes custom resources,
  • customizable resource clustering,
  • any Kubernetes resource relationships,
  • declarative custom diagrams,
  • an interactive diagram viewer,
  • a modern web application,
  • a plugin for JetBrains IDEs,
  • main input formats such as Kubernetes manifest files, customization files, Helm charts, helmfile descriptors, and actual cluster state,
  • main output formats such as D2, DOT, draw.io, GIF, JPEG, Mermaid, PDF, PNG, SVG, and TIFF,
  • D2 Diagram Generation
  • Mermaid Diagram Generation,
  • editable draw.io export,
  • a very large set of examples.

KubeDiagrams is available as a Python package in PyPI, a container image in DockerHub, a kubectl plugin, a Nix flake, and a GitHub Action, see here for more details.

An Online KubeDiagrams Service is freely available at https://kubediagrams.lille.inria.fr/.

Read Real-World Use Cases and What do they say about it to discover how KubeDiagrams is really used and appreciated.

Try it on your own Kubernetes manifests, Helm charts, helmfiles, and actual cluster state!

Examples

Architecture diagram for official Kubernetes WordPress tutorial manifests:

Architecture diagram for official Kubernetes ZooKeeper tutorial manifests:

Architecture diagram of a deployed Cassandra instance:

Architecture diagram for Train Ticket:A Benchmark Microservice System:

Architecture diagram of the Minikube Ingress Addon:

Architecture diagram for the Kube Prometheus Stack chart:

Architecture diagram for free5gc-k8s manifests:

Architecture diagram for open5gs-k8s manifests:

Architecture diagram for the Towards5GS-helm chart:

Architecture diagram for a deployed CronJob instance:

Architecture diagram for NetworkPolicy resources:

Architecture diagram for an Argo CD example:

Architecture diagram for an Argo Events example:

Many other architecture diagrams are available into examples/.

Business Applications

  1. Bank of Anthos
  2. DeathStarBench
  3. Official Kubernetes WordPress tutorial
  4. Official Kubernetes ZooKeeper tutorial
  5. Official Kubernetes Cassandra tutorial
  6. Online Boutique
  7. OpenTelemetry Demo
  8. TeaStore
  9. Train Ticket

5G Core Network Functions

  1. free5gc-k8s
  2. docker-open5gs
  3. Gradiant 5G Charts
  4. open5gs-k8s
  5. OpenAirInterface 5G Core Network
  6. Towards5GS-helm

Kubernetes Operators

  1. Argo
  2. cert-manager
  3. External Secrets Operator
  4. Gateway API
  5. Istio
  6. Kube Prometheus Stack
  7. LeaderWorkerSet API

Kubernetes Control Planes

  1. k0s architecture diagrams
  2. minikube architecture diagrams

Other examples

  1. Custom Object Items
  2. Some Helm charts
  3. helmfile
  4. Inside workloads
  5. Miscellaneous examples

Prerequisites

Following software must be installed:

  • Python 3.9 or higher
  • dot command (Graphviz)

Getting Started

Online with nothing to install on your machine

You could use KubeDiagrams directly from your favorite Web browser here.

From PyPI

Following command installs KubeDiagrams and all its Python dependencies, i.e., PyYAML, Diagrams, and graphviz2drawio.

ssh
# using pip (pip3)
pip install KubeDiagrams

From Nix

Alternatively, you can install via Nix:

bash
nix shell github:philippemerle/KubeDiagrams

From Docker Hub

KubeDiagrams container images are available in Docker Hub. You can download the latest container image via:

bash
docker pull philippemerle/kubediagrams

From source

You can start directly from source:

bash
# clone the KubeDiagrams repository
git clone https://github.com/philippemerle/KubeDiagrams.git

# install required Python packages
pip install PyYAML diagrams graphviz2drawio

# make KubeDiagrams commands available into $PATH
PATH=$(pwd)/KubeDiagrams/bin:$PATH

From Windows

To use KubeDiagrams from Windows operating system, only the container image is supported currently.

[!NOTE]

Any contribution would be welcome to translate KubeDiagrams' Unix-based scripts to Windows-based scripts.

Usage

KubeDiagrams provides two commands: kube-diagrams and helm-diagrams.

kube-diagrams

kube-diagrams generates a Kubernetes architecture diagram from one or several Kubernetes manifest files.

…

kube-diagrams reads Kubernetes manifests from the standard input when filename is equals to -.

Examples:

…

kubectl Plugin Support

You can use KubeDiagrams as a kubectl plugin as well for a more integrated Kubernetes workflow. This allows you to run commands like:

bash
kubectl diagrams all -o diagram.png

To enable this, simply symlink or copy the kubectl-diagrams script onto your $PATH:

bash
ln -s $(which kubectl-diagrams) /usr/local/bin/kubectl-diagrams

[!NOTE]

You will also already need kube-diagrams on your $PATH as well for this to work.

You can alternatively install it via Nix:

bash
nix shell github:philippemerle/KubeDiagrams#kubectl-diagrams

helm-diagrams

helm-diagrams generates a Kubernetes architecture diagram from an Helm chart.

…

[!NOTE]

helm-diagrams requires that the helm command was installed.

Examples:

ssh
# generate a diagram for the Helm chart 'cert-manager' available in HTTP repository 'charts.jetstack.io'
helm-diagrams https://charts.jetstack.io/cert-manager

# generate a diagram for the Helm chart 'argo-cd' available in OCI repository 'ghcr.io'
helm-diagrams oci://ghcr.io/argoproj/argo-helm/argo-cd

# generate a diagram for the Helm chart 'some-chart' available locally
helm-diagrams some-path/some-chart

With Docker/Podman

KubeDiagrams images are available in Docker Hub.

…

GitHub Action

You can use KubeDiagrams (and Helm Diagrams) in your GitHub Action workflows.

…

Action philippemerle/KubeDiagrams@main is available here.

KubeDiagrams Plugin for JetBrains IDEs

The KubeDiagrams Plugin for JetBrains IDEs is available here.

Features

Kubernetes built-in resources

KubeDiagrams supports the following 51 Kubernetes resource types:

Kind ApiGroup Versions Icon

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptarchitecturediagramsgraphvizhelm

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,