-
Notifications
You must be signed in to change notification settings - Fork 4
/
genmap.html
106 lines (79 loc) · 3.28 KB
/
genmap.html
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<link href="{{"mermaid/mermaid.css" | relURL}}" type="text/css" rel="stylesheet" />
<script src="{{"mermaid/mermaid.js" | relURL}}"></script>
<script>
var config = {
startOnLoad: true,
theme: 'dark',
flowchart: {
useMaxWidth: true,
curve: 'basis',
htmlLabels: true
}
};
mermaid.initialize(config);
</script>
<div class="mermaid" align="center">
graph BT;
linkStyle default interpolate basis
classDef default stroke-width:3px;
container["Container(s)"]--run inside-->pod[Pod]
style container stroke:#BE41FC;
pod--is scaled by-->rs[ReplicaSet]
style pod stroke:#BE41FC;
rs--enables updates-->deployment[Deployment]
style deployment stroke:#141B41;
style rs stroke:#141B41;
hpa[HorizontalPodAutoscaler]--autoscales-->rs
hpa--autoscales-->deployment
style hpa stroke:#141B41;
pod--is scaled by-->rc[ReplicationController]
style rc stroke:#141B41;
pod--runs in an orderly fashion-->statefulset[StatefulSet]
style statefulset stroke:#141B41;
pod--runs on every node by-->ds[DaemonSet]
style ds stroke:#141B41;
pod--execute a task-->job[Job]
style job stroke:#141B41;
job--execute a task based on a schedule-->cronjob[CronJob]
style cronjob stroke:#141B41;
pod--is exposed by-->svc[Service]
style svc stroke:#2DF02A;
ep[Endpoints]--keeps active ip:port pairs-->svc
style ep stroke:#2DF02A;
svc--provides info-->ing[Ingress]
style ing stroke:#2DF02A;
pv[PersistentVolume]-.satisfies.->pvc
style pvc stroke:#D12E2E;
pvc[PersistentVolumeClaim]--provides persistent storage-->vol
style pv stroke:#D12E2E;
style vol stroke:#D12E2E;
pv--may belongs to single-->sc
style sc stroke:#D12E2E;
sc[StorageClass]-.dynamically provisions.->pv
style sc stroke:#D12E2E;
vol[Volume]--mounts data inside as files or dirs-->pod[Pod]
configmap[ConfigMap]--exposes as env variables-->pod
style configmap stroke:#D12E2E;
configmap--exposes as files-->vol
secret[Secret]--exposes as env variables-->pod
style secret stroke:#D12E2E;
secret--exposes as files-->vol
click container "{{ ref . "container" }}" "Click for details"
click pod "{{ ref . "pod" }}" "Click for details"
click rs "{{ ref . "replicaset" }}" "Click for details"
click deployment "{{ ref . "deployment" }}" "Click for details"
click statefulset "{{ ref . "statefulset" }}" "Click for details"
click rc "{{ ref . "replicationcontroller" }}" "Click for details"
click job "{{ ref . "job" }}" "Click for details"
click cronjob "{{ ref . "cronjob" }}" "Click for details"
click ds "{{ ref . "daemonset" }}" "Click for details"
click svc "{{ ref . "service" }}" "Click for details"
click ing "{{ ref . "ingress" }}" "Click for details"
click ep "{{ ref . "endpoints" }}" "Click for details"
click vol "{{ ref . "volume" }}" "Click for details"
click secret "{{ ref . "secret" }}" "Click for details"
click configmap "{{ ref . "configmap" }}" "Click for details"
click sc "{{ ref . "storageclass" }}" "Click for details"
click pv "{{ ref . "persistentvolume" }}" "Click for details"
click pvc "{{ ref . "persistentvolumeclaim" }}" "Click for details"
</div>