Deployment Diagram
Map physical and cloud execution topologies with nested nodes, runtime environments, artifacts, and encrypted communication paths.
| 1 | dialect uml; |
| 2 | |
| 3 | uml::deployment_diagram "Multi-Region Cloud Kubernetes Topology" { |
| 4 | schema { |
| 5 | node device @WorkerNodeA [label: "EKS Worker Node us-east-1a"] { |
| 6 | node runtime ContainerRuntime [label: "containerd v1.7"] { |
| 7 | artifact container @OrderContainer [file: "ghcr.io/org/order:v3.2"]; |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | node device @WorkerNodeB [label: "EKS Worker Node us-east-1b"] { |
| 12 | node sandbox PaymentPodSandbox [label: "Payment Gateway Pod"] { |
| 13 | artifact container @PaymentContainer [file: "ghcr.io/org/payment:v2.1"]; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | node database_server @DatabaseCluster [label: "Aurora PostgreSQL Multi-AZ Cluster"] { |
| 18 | artifact schema PostgresSchemaDdl [file: "V1__init_orders.sql"]; |
| 19 | } |
| 20 | |
| 21 | node device @HardwareHsm [label: "CloudHSM Key Management Appliance"]; |
| 22 | |
| 23 | artifact spec @HelmDeploymentValues [file: "values-production.yaml", label: "Helm Values Manifest"]; |
| 24 | } |
| 25 | |
| 26 | flow { |
| 27 | WorkerNodeA <-> DatabaseCluster: "connects" [protocol: "PostgreSQL/mTLS 5432"]; |
| 28 | WorkerNodeB <-> DatabaseCluster: "connects" [protocol: "PostgreSQL/mTLS 5432"]; |
| 29 | WorkerNodeA <-> WorkerNodeB: "connects" [protocol: "gRPC/HTTP2 9090"]; |
| 30 | WorkerNodeB <-> HardwareHsm: "connects" [protocol: "PKCS#11 2224"]; |
| 31 | } |
| 32 | } |
| 33 | |
Errors: 0 | deployment-diagram
Core Syntax Reference
| Construct | Purpose |
|---|---|
device @Cluster { runtime @Pod { ... } } | Nest execution environments inside hardware/cloud nodes |
artifact @Binary [version: "..."]; | Place deployed artifacts inside runtimes |
NodeA <-> NodeB: "mTLS"; | Declare bidirectional communication paths |