-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-example.drawio
164 lines (164 loc) · 15 KB
/
k8s-example.drawio
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<mxfile host="Electron" modified="2024-01-30T08:47:49.277Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/23.0.2 Chrome/120.0.6099.109 Electron/28.1.0 Safari/537.36" etag="YuJoup7ufLDTUDx96L3r" version="23.0.2" type="device">
<diagram name="Seite-1" id="27cucAkSgiIcIaAseIDE">
<mxGraphModel dx="1853" dy="1838" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-2" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-10" y="80" width="810" height="470" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-7" value="Deployment" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="383" y="160" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-8" value="multi-<b>client</b> pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="383" y="190" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-9" value="multi-<b>client</b> pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="383" y="220" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-10" value="multi-<b>client</b> pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="383" y="250" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-13" value="ClusterIP Service" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="323" y="160" width="60" height="120" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-14" value="Deployment" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="383" y="326" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="iXzZxIJWQ1mJag5ZHDoz-15" target="iXzZxIJWQ1mJag5ZHDoz-21" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-15" value="multi-<b>server</b>&nbsp;pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="383" y="356" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-38" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="iXzZxIJWQ1mJag5ZHDoz-16" target="iXzZxIJWQ1mJag5ZHDoz-21" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-40" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="iXzZxIJWQ1mJag5ZHDoz-16" target="iXzZxIJWQ1mJag5ZHDoz-24" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-16" value="multi-<b>server</b>&nbsp;pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="383" y="386" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-39" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="iXzZxIJWQ1mJag5ZHDoz-17" target="iXzZxIJWQ1mJag5ZHDoz-21" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-17" value="multi-<b>server</b>&nbsp;pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="383" y="416" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-18" value="ClusterIP Service" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="323" y="326" width="60" height="120" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-19" value="Deployment" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="661" y="210" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-20" value="<b>Redis</b>&nbsp;pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="661" y="240" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-21" value="ClusterIP Service" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="601" y="210" width="60" height="60" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-22" value="Deployment" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="661" y="336" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="iXzZxIJWQ1mJag5ZHDoz-23" target="iXzZxIJWQ1mJag5ZHDoz-25" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-23" value="<b>Postgres</b>&nbsp;pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="661" y="366" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-24" value="ClusterIP Service" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="601" y="336" width="60" height="60" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-25" value="PVC Postgres<br>(PVC = Persistent Volumne Claim)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="661" y="426" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-27" value="Deployment" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="651" y="110" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="iXzZxIJWQ1mJag5ZHDoz-28" target="iXzZxIJWQ1mJag5ZHDoz-21" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-28" value="multi-<b>worker</b> pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="651" y="140" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-45" value="" style="endArrow=classic;html=1;rounded=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-190" y="314" as="sourcePoint" />
<mxPoint x="-110" y="314" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-46" value="Traffic" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="iXzZxIJWQ1mJag5ZHDoz-45" vertex="1" connectable="0">
<mxGeometry x="0.0524" y="3" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="iXzZxIJWQ1mJag5ZHDoz-47" value="<b><font style="font-size: 22px;">Node</font></b>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="490" y="80" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-1" value="Ingress-Nginx on<br>Google Cloud" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="-160" y="130" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="6ZOFgzqLojdkVHVzqngt-2" target="6ZOFgzqLojdkVHVzqngt-6" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-2" value="Google Cloud Load Balancer" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="-110" y="249.5" width="50" height="130" as="geometry" />
</mxCell>
<mxCell id="_8aFh1CXMi-XVLO6OmzR-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;dashed=1;" edge="1" parent="1" source="6ZOFgzqLojdkVHVzqngt-4" target="_8aFh1CXMi-XVLO6OmzR-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-4" value="Deployment" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="50" y="284.5" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="6ZOFgzqLojdkVHVzqngt-5" target="iXzZxIJWQ1mJag5ZHDoz-13" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="6ZOFgzqLojdkVHVzqngt-5" target="iXzZxIJWQ1mJag5ZHDoz-18" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="6ZOFgzqLojdkVHVzqngt-5" target="6ZOFgzqLojdkVHVzqngt-9" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="247" y="330" />
<mxPoint x="247" y="510" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-5" value="nginx-controller/nginx pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="50" y="314.5" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-6" value="Load Balancer Service" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="-10" y="284.5" width="60" height="60" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-7" value="Deployment" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="384" y="480" width="126" height="30" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-8" value="default-backend pod" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="384" y="510" width="126" height="30" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-9" value="ClusterIP Service" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="324" y="480" width="60" height="60" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="6ZOFgzqLojdkVHVzqngt-6" target="6ZOFgzqLojdkVHVzqngt-6" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" source="6ZOFgzqLojdkVHVzqngt-15" target="6ZOFgzqLojdkVHVzqngt-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-15" value="Ingress Config" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="50" y="416" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="6ZOFgzqLojdkVHVzqngt-16" value="Set of routing rules" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="50" y="446" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="VxHw1yu9MMhwzW4UODXs-1" value="Used for health check" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="510" y="510" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="_8aFh1CXMi-XVLO6OmzR-1" value="注释:使用nginx-controller的话,traffic will be routed directly to the client or server pods , even they have ClusterIPService. ClusterIPService will be totally ignored. Reason is:it is useful for sticky session. That means, the same user will always be routed to the same pod!" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry y="-50" width="550" height="100" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>