-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram.d2
74 lines (68 loc) · 1.35 KB
/
diagram.d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
comment: |md
## Trying to use local images and have github render in diagram
|
# Kubernetes
k8s: {
label: K8s Cluster
style: {
fill: '#acd7e1'
stroke-width: 5
font-size: 20
}
ns: {
label: "Namespace"
style: {
fill: '#e1d7ac'
font-size: 20
}
pod: {
label: "Pod"
font-size: 10
shape: image
icon: images/pod.svg
width: 200
height: 200
link: 'https://kubernetes.io/docs/concepts/workloads/pods/'
}
svc: {
label: "Service"
font-size: 10
shape: image
icon: images/svc.svg
width: 200
height: 200
link: 'https://kubernetes.io/docs/concepts/services-networking/service/'
}
cm: {
label: "Config Map"
font-size: 10
shape: image
icon: images/cm.svg
width: 200
height: 200
link: 'https://kubernetes.io/docs/concepts/configuration/configmap/'
}
}
}
# Registry
reg: {
label: Registry
style: {
fill: '#acd7e1'
stroke-width: 5
font-size: 20
}
image: {
label: "Container Image"
shape: image
icon: images/container-logo.svg
width: 200
height: 200
font-size: 10
link: 'https://kubernetes.io/docs/concepts/containers/images/'
}
}
# Arrows describing relationships
k8s.ns.pod <-> reg.image
k8s.ns.svc <-> k8s.ns.pod
k8s.ns.cm <-> k8s.ns.pod