Workload and Configuration
Deployments with their config and secrets attached.
- Format.puml
- Length28 lines
- LibraryKubernetes icons
The source
28 lines of PlantUML, and pulls in Kubernetes icons. Copy it, or open the template inside Gnomon and render it as it is.
@startuml
!define KubernetesPuml https://raw.githubusercontent.com/dcasati/kubernetes-PlantUML/master/dist
!include KubernetesPuml/kubernetes_Common.puml
!include KubernetesPuml/kubernetes_Simplified.puml
!include KubernetesPuml/OSS/KubernetesDeploy.puml
!include KubernetesPuml/OSS/KubernetesRs.puml
!include KubernetesPuml/OSS/KubernetesPod.puml
!include KubernetesPuml/OSS/KubernetesHpa.puml
!include KubernetesPuml/OSS/KubernetesCm.puml
!include KubernetesPuml/OSS/KubernetesSecret.puml
title Kubernetes — Workload and configuration
KubernetesDeploy(deploy, "checkout", "3 replicas")
KubernetesRs(rs, "checkout-7f4b", "")
KubernetesPod(pod1, "checkout-a", "")
KubernetesPod(pod2, "checkout-b", "")
KubernetesHpa(hpa, "checkout-hpa", "2-10 pods")
KubernetesCm(cm, "checkout-config", "")
KubernetesSecret(secret, "checkout-creds", "")
deploy --> rs
rs --> pod1
rs --> pod2
hpa ..> deploy
cm ..> pod1
secret ..> pod1
@endumlRender this offline
This template ships in Gnomon and renders on your machine, with no account and no diagram uploads. The browser editor is free and needs no install.
Others in Kubernetes diagrams
- Cluster OverviewThe whole cluster at a glance. The one to draw first.
- Ingress to PodsIngress to service to pods. How traffic actually gets in.
- Stateful StoragePersistent volumes and claims. What survives a restart, and what does not.
- RBACRoles and bindings. The diagram that finds the over-permissive service account.