Workload and Configuration

Deployments with their config and secrets attached.

Workload and Configuration: rendered example
Rendered by Gnomon from the source below. No edits.

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
@enduml

Render this offline

This template ships in Gnomon and renders on your machine, with no account and nothing sent to a server. The browser editor is free and needs no install.

Get GnomonOpen the browser editor

Others in Kubernetes diagrams