Skip to content
D2 templates

Kubernetes deployment

Ingress → Service → Deployment → Pods; ConfigMap + Secret.

Template previewD2
G cluster_deployment deployment ingress ingress service service ingress->service deployment.pod1 pod1 service->deployment.pod1 configmap configmap configmap->deployment.pod1 deployment.pod2 pod2 configmap->deployment.pod2 deployment.pod3 pod3 configmap->deployment.pod3 secret secret secret->deployment.pod1 tls cert

What this template contains

Source
13 lines

Make it your own.

ingress -> service
service -> deployment

deployment: {
  pod1
  pod2
  pod3
}

configmap -> deployment.pod1
configmap -> deployment.pod2
configmap -> deployment.pod3

secret -> deployment.pod1: tls cert

configmap.shape: page
secret.shape: page