Files
KubeDiagrams/examples/inside-workloads

Inside Workloads Example

This example illustrates how to show the internal structure of workloads, i.e., their pods, volumes, containers, mounted volumes, referenced config maps and secrets, as discussed here.

Instructions

Generate the Kubernetes architecture diagrams:

./generate.sh

Generated architecture diagrams

By default, with KubeDiagrams, each workload is represented by one graphical node as shown in the following diagram containing two deployments:

../wordpress/wordpress.png

But sometimes, we would like to see the internal structure of workloads, i.e., their pods, volumes, containers, mounted volumes, and how config maps, secrets, and persistent volume claims are referenced.

Following diagram shows the internal structure of both deployments of this WordPress example:

Internal structure of the WordPress example

Following diagram shows the architecture of a demo example:

demo example

Following diagram shows the internal structure of the deployment of this demo example:

Internal structure of the demo example

This previous diagram shows that sometimes the internal structure of workloads can be strongly complex.

The KubeDiagrams configuration to show the internal structure of workloads is available in inside-workloads.kdc.