refactor: 문서 개선 중

This commit is contained in:
donghyeon-ka
2026-09-21 14:30:55 +09:00
parent c93cdea150
commit 805a18f486
1497 changed files with 525837 additions and 59152 deletions
@@ -10,15 +10,15 @@ test-server 호스트의 nginx 가 kc-lab-1 의 traefik 으로 프록시하고,
## Elements and evidence
- **호스트 nginx** (gateway): Let's Encrypt 인증서로 TLS 를 끝내고 traefik 으로 넘긴다. Evidence: L88L92.
- **traefik (kc-lab-1)** (gateway): k3s 의 인그레스. 호스트 이름으로 서비스를 고른다. Evidence: L85L87.
- **keycloak-1** (service): 컨트롤 플레인 노드에 있다. Evidence: L85L86.
- **keycloak-0** (service): 저장소와 같은 노드에 있다. Evidence: L86L87.
- **PostgreSQL · Redis** (datastore): 둘 다 kc-lab-2 에 있다. 이 노드를 잃으면 저장소도 같이 잃는다. Evidence: L86L87.
- **호스트 nginx** (gateway): Let's Encrypt 인증서로 TLS 를 끝내고 traefik 으로 넘긴다. Evidence: L123L127.
- **traefik (kc-lab-1)** (gateway): k3s 의 인그레스. 호스트 이름으로 서비스를 고른다. Evidence: L120L122.
- **keycloak-1** (service): 컨트롤 플레인 노드에 있다. Evidence: L120L120.
- **keycloak-0** (service): 저장소와 같은 노드에 있다. Evidence: L122L122.
- **PostgreSQL · Redis** (datastore): 둘 다 kc-lab-2 에 있다. 이 노드를 잃으면 저장소도 같이 잃는다. Evidence: L122L122.
## Relationships
- **keycloak-0 → PostgreSQL · Redis:** 같은 노드. Evidence: L86L87.
- **호스트 nginx → traefik (kc-lab-1):** TLS 종단. Evidence: L88L92.
- **traefik (kc-lab-1) → keycloak-0:** 라우팅. Evidence: L85L87.
- **traefik (kc-lab-1) → keycloak-1:** 라우팅. Evidence: L85L87.
- **keycloak-0 → PostgreSQL · Redis:** 같은 노드. Evidence: L122L122.
- **호스트 nginx → traefik (kc-lab-1):** TLS 종단. Evidence: L123L127.
- **traefik (kc-lab-1) → keycloak-0:** 라우팅. Evidence: L120L122.
- **traefik (kc-lab-1) → keycloak-1:** 라우팅. Evidence: L120L122.
@@ -1,6 +1,6 @@
# 실험대의 구성
# Question: 이 실험들은 어떤 기계 위에서 돌았는가
direction: down
direction: right
n0: "호스트 nginx" {
shape: diamond
}
@@ -1,5 +1,5 @@
digraph techviz {
graph [rankdir=TB, splines=ortho, nodesep=0.55, ranksep=0.85];
graph [rankdir=LR, splines=ortho, nodesep=0.55, ranksep=0.85];
node [fontname=Helvetica, fontsize=11, margin="0.18,0.12", style="rounded,filled", fillcolor=white, color="#2d4357", penwidth=1.5];
edge [fontname=Helvetica, fontsize=10, color="#364b5f", penwidth=1.4, arrowsize=0.75];
n0 [label="호스트 nginx", shape=diamond, style="rounded,filled"];
@@ -1,43 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" modified="2026-07-23T00:00:00.000Z" agent="techviz-harness" version="24.7.17" type="device">
<diagram id="lab-topology" name="실험대의 구성">
<mxGraphModel dx="1045" dy="456" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1045" pageHeight="1169" math="0" shadow="0">
<mxGraphModel dx="1260" dy="319" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1260" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="n_traefik" value="traefik (kc-lab-1)&lt;br/&gt;k3s server 노드" tooltip="k3s 의 인그레스. 호스트 이름으로 서비스를 고른다. | Evidence: L85-L87" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;rhombus;perimeter=rhombusPerimeter;fillColor=#fff7e8;" vertex="1" parent="1">
<mxGeometry x="470.0" y="155.0" width="175.0" height="71.0" as="geometry"/>
<mxCell id="n_nginx" value="호스트 nginx&lt;br/&gt;SAN: auth · app1 · app2" tooltip="Let&#x27;s Encrypt 인증서로 TLS 를 끝내고 traefik 으로 넘긴다. | Evidence: L123-L127" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;rhombus;perimeter=rhombusPerimeter;fillColor=#fff7e8;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="70.0" y="131.5" width="195.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_keycloak-1" value="keycloak-1&lt;br/&gt;kc-lab-1" tooltip="컨트롤 플레인 노드에 있다. | Evidence: L85-L86" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="745.0" y="40.0" width="255.0" height="92.0" as="geometry"/>
<mxCell id="n_traefik" value="traefik (kc-lab-1)&lt;br/&gt;k3s server 노드" tooltip="k3s 의 인그레스. 호스트 이름으로 서비스를 고른다. | Evidence: L120-L122" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;rhombus;perimeter=rhombusPerimeter;fillColor=#fff7e8;" vertex="1" parent="1">
<mxGeometry x="425.0" y="131.5" width="160.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_keycloak-0" value="keycloak-0&lt;br/&gt;kc-lab-2" tooltip="저장소와 같은 노드에 있다. | Evidence: L86-L87" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="745.0" y="165.0" width="255.0" height="92.0" as="geometry"/>
<mxCell id="n_keycloak-0" value="keycloak-0&lt;br/&gt;kc-lab-2" tooltip="저장소와 같은 노드에 있다. | Evidence: L122-L122" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="745.0" y="60.0" width="150.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_stores" value="PostgreSQL · Redis&lt;br/&gt;kc-lab-2" tooltip="둘 다 kc-lab-2 에 있다. 이 노드를 잃으면 저장소도 같이 잃는다. | Evidence: L86-L87" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;shape=cylinder3;boundedLbl=1;backgroundOutline=1;fillColor=#eef6fb;strokeColor=#d97706;fillColor=#fffdf5;" vertex="1" parent="1">
<mxGeometry x="745.0" y="290.0" width="255.0" height="97.0" as="geometry"/>
<mxCell id="n_keycloak-1" value="keycloak-1&lt;br/&gt;kc-lab-1" tooltip="컨트롤 플레인 노드에 있다. | Evidence: L120-L120" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="745.0" y="203.0" width="150.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_nginx" value="호스트 nginx&lt;br/&gt;SAN: auth · app1 · app2" tooltip="Let&#x27;s Encrypt 인증서로 TLS 를 끝내고 traefik 으로 넘긴다. | Evidence: L88-L92" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;rhombus;perimeter=rhombusPerimeter;fillColor=#fff7e8;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="270.0" y="340.0" width="195.0" height="71.0" as="geometry"/>
<mxCell id="n_stores" value="PostgreSQL · Redis&lt;br/&gt;kc-lab-2" tooltip="둘 다 kc-lab-2 에 있다. 이 노드를 잃으면 저장소도 같이 잃는다. | Evidence: L122-L122" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;shape=cylinder3;boundedLbl=1;backgroundOutline=1;fillColor=#eef6fb;strokeColor=#d97706;fillColor=#fffdf5;" vertex="1" parent="1">
<mxGeometry x="1055.0" y="131.5" width="160.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="e_k0-store" value="같은 노드" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_keycloak-0" target="n_stores">
<mxGeometry relative="1" as="geometry">
<mxPoint x="896.5" y="274.8" as="offset"/>
<mxPoint x="999.0" y="131.2" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_tls" value="TLS 종단" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_nginx" target="n_traefik">
<mxGeometry relative="1" as="geometry">
<mxPoint x="519.0" y="184.0" as="offset"/>
<mxPoint x="345.0" y="139.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_to-k0" value="라우팅" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_traefik" target="n_keycloak-0">
<mxGeometry relative="1" as="geometry">
<mxPoint x="719.0" y="205.2" as="offset"/>
<mxPoint x="689.0" y="126.8" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_to-k1" value="라우팅" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_traefik" target="n_keycloak-1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="719.0" y="133.8" as="offset"/>
<mxPoint x="689.0" y="207.2" as="offset"/>
</mxGeometry>
</mxCell>
</root>
@@ -6,10 +6,10 @@
{
"id": "edge-k0-store",
"type": "arrow",
"x": 745.0,
"y": 211.0,
"width": 255.0,
"height": 127.5,
"x": 895.0,
"y": 95.5,
"width": 160.0,
"height": 71.5,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -31,21 +31,21 @@
"link": null,
"locked": false,
"points": [
[
255.0,
0.0
],
[
127.5,
0.0
],
[
127.5,
127.5
],
[
0.0,
127.5
0.0
],
[
80.0,
0.0
],
[
80.0,
71.5
],
[
160.0,
71.5
]
],
"lastCommittedPoint": null,
@@ -66,8 +66,8 @@
{
"id": "edge-label-k0-store",
"type": "text",
"x": 851.5,
"y": 262.75,
"x": 954.0,
"y": 119.25,
"width": 90,
"height": 24,
"angle": 0,
@@ -105,10 +105,10 @@
{
"id": "edge-tls",
"type": "arrow",
"x": 440.0,
"y": 119.0,
"width": 55.0,
"height": 256.5,
"x": 265.0,
"y": 167.0,
"width": 160.0,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -130,29 +130,21 @@
"link": null,
"locked": false,
"points": [
[
25.0,
256.5
],
[
55.0,
256.5
],
[
55.0,
0.0
],
[
0.0,
0.0
],
[
0.0,
71.5
80.0,
0.0
],
[
30.0,
71.5
80.0,
0.0
],
[
160.0,
0.0
]
],
"lastCommittedPoint": null,
@@ -173,8 +165,8 @@
{
"id": "edge-label-tls",
"type": "text",
"x": 474.0,
"y": 172.0,
"x": 300.0,
"y": 127.0,
"width": 90,
"height": 24,
"angle": 0,
@@ -212,10 +204,10 @@
{
"id": "edge-to-k0",
"type": "arrow",
"x": 645.0,
"y": 199.5,
"width": 100.0,
"height": 11.5,
"x": 585.0,
"y": 95.5,
"width": 160.0,
"height": 62.5,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -239,19 +231,19 @@
"points": [
[
0.0,
62.5
],
[
80.0,
62.5
],
[
80.0,
0.0
],
[
50.0,
160.0,
0.0
],
[
50.0,
11.5
],
[
100.0,
11.5
]
],
"lastCommittedPoint": null,
@@ -272,8 +264,8 @@
{
"id": "edge-label-to-k0",
"type": "text",
"x": 674.0,
"y": 193.25,
"x": 644.0,
"y": 114.75,
"width": 90,
"height": 24,
"angle": 0,
@@ -311,10 +303,10 @@
{
"id": "edge-to-k1",
"type": "arrow",
"x": 645.0,
"y": 86.0,
"width": 100.0,
"height": 95.5,
"x": 585.0,
"y": 176.0,
"width": 160.0,
"height": 62.5,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -338,19 +330,19 @@
"points": [
[
0.0,
95.5
],
[
50.0,
95.5
],
[
50.0,
0.0
],
[
100.0,
80.0,
0.0
],
[
80.0,
62.5
],
[
160.0,
62.5
]
],
"lastCommittedPoint": null,
@@ -371,8 +363,8 @@
{
"id": "edge-label-to-k1",
"type": "text",
"x": 674.0,
"y": 121.75,
"x": 644.0,
"y": 195.25,
"width": 90,
"height": 24,
"angle": 0,
@@ -407,12 +399,81 @@
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-nginx",
"type": "rectangle",
"x": 70.0,
"y": 131.5,
"width": 195.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#fff4e6",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 721013300,
"version": 1,
"versionNonce": 1520646945,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-nginx",
"type": "text",
"x": 80.0,
"y": 141.5,
"width": 175.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 117243520,
"version": 1,
"versionNonce": 936748041,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "호스트 nginx\nSAN: auth · app1 · app2",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "호스트 nginx\nSAN: auth · app1 · app2",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-traefik",
"type": "rectangle",
"x": 470.0,
"y": 155.0,
"width": 175.0,
"x": 425.0,
"y": 131.5,
"width": 160.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
@@ -440,9 +501,9 @@
{
"id": "node-label-traefik",
"type": "text",
"x": 480.0,
"y": 165.0,
"width": 155.0,
"x": 435.0,
"y": 141.5,
"width": 140.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
@@ -476,82 +537,13 @@
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-keycloak-1",
"type": "rectangle",
"x": 745.0,
"y": 40.0,
"width": 255.0,
"height": 92.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1492679290,
"version": 1,
"versionNonce": 684109252,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-keycloak-1",
"type": "text",
"x": 755.0,
"y": 50.0,
"width": 235.0,
"height": 72.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 186685213,
"version": 1,
"versionNonce": 935977296,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "keycloak-1\nkc-lab-1",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "keycloak-1\nkc-lab-1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-keycloak-0",
"type": "rectangle",
"x": 745.0,
"y": 165.0,
"width": 255.0,
"height": 92.0,
"y": 60.0,
"width": 150.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
@@ -579,9 +571,9 @@
"id": "node-label-keycloak-0",
"type": "text",
"x": 755.0,
"y": 175.0,
"width": 235.0,
"height": 72.0,
"y": 70.0,
"width": 130.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -615,12 +607,81 @@
"lineHeight": 1.25
},
{
"id": "node-stores",
"id": "node-keycloak-1",
"type": "rectangle",
"x": 745.0,
"y": 290.0,
"width": 255.0,
"height": 97.0,
"y": 203.0,
"width": 150.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1492679290,
"version": 1,
"versionNonce": 684109252,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-keycloak-1",
"type": "text",
"x": 755.0,
"y": 213.0,
"width": 130.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 186685213,
"version": 1,
"versionNonce": 935977296,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "keycloak-1\nkc-lab-1",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "keycloak-1\nkc-lab-1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-stores",
"type": "rectangle",
"x": 1055.0,
"y": 131.5,
"width": 160.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e7f5ff",
@@ -647,10 +708,10 @@
{
"id": "node-label-stores",
"type": "text",
"x": 755.0,
"y": 300.0,
"width": 235.0,
"height": 77.0,
"x": 1065.0,
"y": 141.5,
"width": 140.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -682,75 +743,6 @@
"originalText": "PostgreSQL · Redis\nkc-lab-2",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-nginx",
"type": "rectangle",
"x": 270.0,
"y": 340.0,
"width": 195.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#fff4e6",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 721013300,
"version": 1,
"versionNonce": 1520646945,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-nginx",
"type": "text",
"x": 280.0,
"y": 350.0,
"width": 175.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 117243520,
"version": 1,
"versionNonce": 936748041,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "호스트 nginx\nSAN: auth · app1 · app2",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "호스트 nginx\nSAN: auth · app1 · app2",
"autoResize": true,
"lineHeight": 1.25
}
],
"appState": {
@@ -2,14 +2,14 @@
"harness_version": "0.2.0",
"spec_id": "lab-topology",
"spec_version": "1.1",
"spec_sha256": "04dac66296fb7d8f6c378630308fc110935aacdf1a63a18cd1302330366a4db0",
"spec_sha256": "68e2114dd2e75bcdcf58d49a47a75252decdba4beeaec4b717885b10103636d3",
"source_context": {
"document": "docs/keycloak-session-store/final/document.md",
"document_sha256": "1d44cba1905544d92f1d26ae36a8deb64a3db3914d6b488fd30d6ae7f8cfbabe",
"document_sha256": "28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560",
"anchor": {
"kind": "heading",
"value": "실험대",
"line": 85
"line": 120
}
},
"outputs": [
@@ -24,9 +24,9 @@
"lint_issue_count": 1,
"assumption_count": 0,
"assumptions_allowed": false,
"composition_profile": "query-fanout",
"composition_profile": "component-flow",
"reference_ids": [
"metrics-query-fanout"
"payment-event-flow"
],
"diagram_only": true
}
@@ -1,6 +1,6 @@
%% 실험대의 구성
%% question: 이 실험들은 어떤 기계 위에서 돌았는가
flowchart TB
flowchart LR
n0{"호스트 nginx"}
n1{"traefik (kc-lab-1)"}
n2["keycloak-1"]
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1045" height="456" viewBox="0 0 1045 456" role="img" aria-labelledby="diagram-title diagram-description">
<svg xmlns="http://www.w3.org/2000/svg" width="1260" height="319" viewBox="0 0 1260 319" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">실험대의 구성</title>
<desc id="diagram-description">베어메탈 test-server 위에 VM 두 대를 올렸다. kc-lab-1 이 k3s server 이자 컨트롤 플레인이고 keycloak-1 이 여기 있다. kc-lab-2 는 agent 이며 keycloak-0 과 PostgreSQL, Redis 가 함께 있다. 저장소가 한 노드에 몰려 있어 그 노드를 잃으면 DB 도 같이 잃는다. 호스트 nginx 가 Let&#x27;s Encrypt 인증서로 TLS 를 끝내고 traefik 으로 넘기며, 인증서 하나에 auth·app1·app2 세 이름이 SAN 으로 들어 있다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;lab-topology&quot;,&quot;profile&quot;:&quot;query-fanout&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;docs/keycloak-session-store/final/document.md&quot;,&quot;document_sha256&quot;:&quot;1d44cba1905544d92f1d26ae36a8deb64a3db3914d6b488fd30d6ae7f8cfbabe&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;heading&quot;,&quot;value&quot;:&quot;실험대&quot;,&quot;line&quot;:85}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;lab-topology&quot;,&quot;profile&quot;:&quot;component-flow&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;docs/keycloak-session-store/final/document.md&quot;,&quot;document_sha256&quot;:&quot;28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;heading&quot;,&quot;value&quot;:&quot;실험대&quot;,&quot;line&quot;:120}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" />
@@ -49,49 +49,49 @@
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
</style>
</defs>
<rect class="canvas" width="1045" height="456" />
<polyline class="edge kind-read style-solid emphasis-normal" points="1000.0,211.0 872.5,211.0 872.5,338.5 745.0,338.5" data-evidence="86-87" />
<rect class="edge-label-bg" x="870.8" y="260.8" width="51.5" height="22" rx="3" />
<text class="edge-label" x="896.5" y="275.8">같은 노드</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="465.0,375.5 495.0,375.5 495.0,119.0 440.0,119.0 440.0,190.5 470.0,190.5" data-evidence="88-92" />
<rect class="edge-label-bg" x="489.9" y="170.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="519.0" y="185.0">TLS 종단</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="645.0,199.5 695.0,199.5 695.0,211.0 745.0,211.0" data-evidence="85-87" />
<rect class="edge-label-bg" x="697.0" y="191.2" width="44.0" height="22" rx="3" />
<text class="edge-label" x="719.0" y="206.2">라우팅</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="645.0,181.5 695.0,181.5 695.0,86.0 745.0,86.0" data-evidence="85-87" />
<rect class="edge-label-bg" x="697.0" y="119.8" width="44.0" height="22" rx="3" />
<text class="edge-label" x="719.0" y="134.8">라우팅</text>
<g id="node-traefik">
<polygon class="node-shape kind-gateway emphasis-normal role-control" data-evidence="85-87" points="557.5,155.0 645.0,190.5 557.5,226.0 470.0,190.5" />
<text class="node-label" x="557.5" y="182.0">traefik (kc-lab-1)</text>
<line class="node-detail-divider" x1="484.0" y1="203.0" x2="631.0" y2="203.0" />
<text class="node-detail" x="486.0" y="220.0">k3s server 노드</text>
<rect class="canvas" width="1260" height="319" />
<polyline class="edge kind-read style-solid emphasis-normal" points="895.0,95.5 975.0,95.5 975.0,167.0 1055.0,167.0" data-evidence="122-122" />
<rect class="edge-label-bg" x="973.2" y="117.2" width="51.5" height="22" rx="3" />
<text class="edge-label" x="999.0" y="132.2">같은 노드</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="265.0,167.0 345.0,167.0 345.0,167.0 425.0,167.0" data-evidence="123-127" />
<rect class="edge-label-bg" x="315.9" y="125.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="345.0" y="140.0">TLS 종단</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="585.0,158.0 665.0,158.0 665.0,95.5 745.0,95.5" data-evidence="120-122" />
<rect class="edge-label-bg" x="667.0" y="112.8" width="44.0" height="22" rx="3" />
<text class="edge-label" x="689.0" y="127.8">라우팅</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="585.0,176.0 665.0,176.0 665.0,238.5 745.0,238.5" data-evidence="120-122" />
<rect class="edge-label-bg" x="667.0" y="193.2" width="44.0" height="22" rx="3" />
<text class="edge-label" x="689.0" y="208.2">라우팅</text>
<g id="node-nginx">
<polygon class="node-shape kind-gateway emphasis-primary role-source" data-evidence="123-127" points="167.5,131.5 265.0,167.0 167.5,202.5 70.0,167.0" />
<text class="node-label" x="167.5" y="158.5">호스트 nginx</text>
<line class="node-detail-divider" x1="84.0" y1="179.5" x2="251.0" y2="179.5" />
<text class="node-detail" x="86.0" y="196.5">SAN: auth · app1 · app2</text>
</g>
<g id="node-keycloak-1">
<rect class="node-shape kind-service emphasis-primary role-shard" data-evidence="85-86" x="745.0" y="40.0" width="255.0" height="92.0" rx="7" />
<text class="node-role" x="872.5" y="59.0">«shard»</text>
<text class="node-label" x="872.5" y="86.0">keycloak-1</text>
<line class="node-detail-divider" x1="759.0" y1="107.0" x2="986.0" y2="107.0" />
<text class="node-detail" x="761.0" y="124.0">kc-lab-1</text>
<g id="node-traefik">
<polygon class="node-shape kind-gateway emphasis-normal role-control" data-evidence="120-122" points="505.0,131.5 585.0,167.0 505.0,202.5 425.0,167.0" />
<text class="node-label" x="505.0" y="158.5">traefik (kc-lab-1)</text>
<line class="node-detail-divider" x1="439.0" y1="179.5" x2="571.0" y2="179.5" />
<text class="node-detail" x="441.0" y="196.5">k3s server 노드</text>
</g>
<g id="node-keycloak-0">
<rect class="node-shape kind-service emphasis-primary role-shard" data-evidence="86-87" x="745.0" y="165.0" width="255.0" height="92.0" rx="7" />
<text class="node-role" x="872.5" y="184.0">«shard»</text>
<text class="node-label" x="872.5" y="211.0">keycloak-0</text>
<line class="node-detail-divider" x1="759.0" y1="232.0" x2="986.0" y2="232.0" />
<text class="node-detail" x="761.0" y="249.0">kc-lab-2</text>
<rect class="node-shape kind-service emphasis-primary role-shard" data-evidence="122-122" x="745.0" y="60.0" width="150.0" height="71.0" rx="7" />
<text class="node-role" x="820.0" y="79.0">«shard»</text>
<text class="node-label" x="820.0" y="106.0">keycloak-0</text>
<line class="node-detail-divider" x1="759.0" y1="127.0" x2="881.0" y2="127.0" />
<text class="node-detail" x="761.0" y="144.0">kc-lab-2</text>
</g>
<g id="node-keycloak-1">
<rect class="node-shape kind-service emphasis-primary role-shard" data-evidence="120-120" x="745.0" y="203.0" width="150.0" height="71.0" rx="7" />
<text class="node-role" x="820.0" y="222.0">«shard»</text>
<text class="node-label" x="820.0" y="249.0">keycloak-1</text>
<line class="node-detail-divider" x1="759.0" y1="270.0" x2="881.0" y2="270.0" />
<text class="node-detail" x="761.0" y="287.0">kc-lab-1</text>
</g>
<g id="node-stores">
<rect class="node-shape kind-datastore emphasis-warning role-store" data-evidence="86-87" x="745.0" y="303.0" width="255.0" height="71.0" /><ellipse class="node-shape kind-datastore emphasis-warning role-store" cx="872.5" cy="303.0" rx="127.5" ry="13.0" /><path class="storage-bottom" d="M 745.0 374.0 A 127.5 13.0 0 0 0 1000.0 374.0" />
<text class="node-label" x="872.5" y="330.0">PostgreSQL · Redis</text>
<line class="node-detail-divider" x1="759.0" y1="351.0" x2="986.0" y2="351.0" />
<text class="node-detail" x="761.0" y="368.0">kc-lab-2</text>
</g>
<g id="node-nginx">
<polygon class="node-shape kind-gateway emphasis-primary role-source" data-evidence="88-92" points="367.5,340.0 465.0,375.5 367.5,411.0 270.0,375.5" />
<text class="node-label" x="367.5" y="367.0">호스트 nginx</text>
<line class="node-detail-divider" x1="284.0" y1="388.0" x2="451.0" y2="388.0" />
<text class="node-detail" x="286.0" y="405.0">SAN: auth · app1 · app2</text>
<rect class="node-shape kind-datastore emphasis-warning role-store" data-evidence="122-122" x="1055.0" y="143.3" width="160.0" height="47.3" /><ellipse class="node-shape kind-datastore emphasis-warning role-store" cx="1135.0" cy="143.3" rx="80.0" ry="11.8" /><path class="storage-bottom" d="M 1055.0 190.7 A 80.0 11.8 0 0 0 1215.0 190.7" />
<text class="node-label" x="1135.0" y="158.5">PostgreSQL · Redis</text>
<line class="node-detail-divider" x1="1069.0" y1="179.5" x2="1201.0" y2="179.5" />
<text class="node-detail" x="1071.0" y="196.5">kc-lab-2</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB