Skip to content

Commit ff1ee5a

Browse files
author
wangyazhou
committed
增加设计模版
1 parent 2a88eca commit ff1ee5a

File tree

4 files changed

+306
-40
lines changed

4 files changed

+306
-40
lines changed

.obsidian/workspace.json

Lines changed: 142 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,98 @@
11
{
22
"main": {
3-
"id": "f7473c8bec0af0c0",
3+
"id": "fa60888132233ae0",
44
"type": "split",
55
"children": [
66
{
7-
"id": "633f016402ca10fc",
7+
"id": "529306f70998dfba",
88
"type": "tabs",
99
"children": [
1010
{
11-
"id": "f01a2ddcd6c4d1bb",
11+
"id": "cafc4e2d41906217",
1212
"type": "leaf",
1313
"state": {
1414
"type": "markdown",
1515
"state": {
16-
"file": "middleware/nginx.md",
16+
"file": "架构/架构设计.md",
1717
"mode": "source",
1818
"source": false
1919
},
2020
"icon": "lucide-file",
21-
"title": "nginx"
21+
"title": "架构设计"
22+
}
23+
},
24+
{
25+
"id": "20d96e3062f4291e",
26+
"type": "leaf",
27+
"state": {
28+
"type": "markdown",
29+
"state": {
30+
"file": "架构/架构设计.md",
31+
"mode": "source",
32+
"source": false
33+
},
34+
"icon": "lucide-file",
35+
"title": "架构设计"
36+
}
37+
},
38+
{
39+
"id": "b7d07db209d422b0",
40+
"type": "leaf",
41+
"state": {
42+
"type": "markdown",
43+
"state": {
44+
"file": "架构/分布式.md",
45+
"mode": "source",
46+
"source": false
47+
},
48+
"icon": "lucide-file",
49+
"title": "分布式"
50+
}
51+
},
52+
{
53+
"id": "420f6196d6d3217b",
54+
"type": "leaf",
55+
"state": {
56+
"type": "markdown",
57+
"state": {
58+
"file": "架构/架构设计.md",
59+
"mode": "source",
60+
"source": false
61+
},
62+
"icon": "lucide-file",
63+
"title": "架构设计"
64+
}
65+
},
66+
{
67+
"id": "6e41c4bae6d0bed8",
68+
"type": "leaf",
69+
"state": {
70+
"type": "markdown",
71+
"state": {
72+
"file": "架构/架构设计.md",
73+
"mode": "source",
74+
"source": false
75+
},
76+
"icon": "lucide-file",
77+
"title": "架构设计"
2278
}
2379
}
24-
]
80+
],
81+
"currentTab": 4
2582
}
2683
],
2784
"direction": "vertical"
2885
},
2986
"left": {
30-
"id": "abd5d96bf24d0f65",
87+
"id": "984ded355ab1126f",
3188
"type": "split",
3289
"children": [
3390
{
34-
"id": "5b4ab387230b9df4",
91+
"id": "b68cb3808bf8406e",
3592
"type": "tabs",
3693
"children": [
3794
{
38-
"id": "8c80d93c8dfd9929",
95+
"id": "5c8b7f1f1f2346fa",
3996
"type": "leaf",
4097
"state": {
4198
"type": "file-explorer",
@@ -44,34 +101,34 @@
44101
"autoReveal": false
45102
},
46103
"icon": "lucide-folder-closed",
47-
"title": "Files"
104+
"title": "文件列表"
48105
}
49106
},
50107
{
51-
"id": "a4d96fea35df1148",
108+
"id": "eb71ac99f702581a",
52109
"type": "leaf",
53110
"state": {
54111
"type": "search",
55112
"state": {
56-
"query": "",
113+
"query": "endpoint",
57114
"matchingCase": false,
58115
"explainSearch": false,
59116
"collapseAll": false,
60117
"extraContext": false,
61118
"sortOrder": "alphabetical"
62119
},
63120
"icon": "lucide-search",
64-
"title": "Search"
121+
"title": "搜索"
65122
}
66123
},
67124
{
68-
"id": "f439de2486b8910b",
125+
"id": "f6e422ca2c0d2f52",
69126
"type": "leaf",
70127
"state": {
71128
"type": "bookmarks",
72129
"state": {},
73130
"icon": "lucide-bookmark",
74-
"title": "Bookmarks"
131+
"title": "书签"
75132
}
76133
}
77134
]
@@ -81,20 +138,20 @@
81138
"width": 300
82139
},
83140
"right": {
84-
"id": "fbec81e268026dc0",
141+
"id": "e7caec816f7dccec",
85142
"type": "split",
86143
"children": [
87144
{
88-
"id": "5c8b9d0e95241a93",
145+
"id": "6dda2822eaf66a8c",
89146
"type": "tabs",
90147
"children": [
91148
{
92-
"id": "f5c18f865b7a3d8f",
149+
"id": "f5d424bebab9d9a4",
93150
"type": "leaf",
94151
"state": {
95152
"type": "backlink",
96153
"state": {
97-
"file": "middleware/nginx.md",
154+
"file": "go/go_package.md",
98155
"collapseAll": false,
99156
"extraContext": false,
100157
"sortOrder": "alphabetical",
@@ -104,25 +161,25 @@
104161
"unlinkedCollapsed": true
105162
},
106163
"icon": "links-coming-in",
107-
"title": "Backlinks for nginx"
164+
"title": "go_package 的反向链接列表"
108165
}
109166
},
110167
{
111-
"id": "fcc31de05f69e6a9",
168+
"id": "3dc59a469e16eeb3",
112169
"type": "leaf",
113170
"state": {
114171
"type": "outgoing-link",
115172
"state": {
116-
"file": "middleware/nginx.md",
173+
"file": "linux/perf.adoc",
117174
"linksCollapsed": false,
118175
"unlinkedCollapsed": true
119176
},
120177
"icon": "links-going-out",
121-
"title": "Outgoing links from nginx"
178+
"title": "perf 的出链列表"
122179
}
123180
},
124181
{
125-
"id": "29d859957f2f2d61",
182+
"id": "27717574aa086f28",
126183
"type": "leaf",
127184
"state": {
128185
"type": "tag",
@@ -133,44 +190,89 @@
133190
"searchQuery": ""
134191
},
135192
"icon": "lucide-tags",
136-
"title": "Tags"
193+
"title": "标签"
137194
}
138195
},
139196
{
140-
"id": "72219f064c10dfb9",
197+
"id": "c65fbe9a811375ef",
141198
"type": "leaf",
142199
"state": {
143200
"type": "outline",
144201
"state": {
145-
"file": "middleware/nginx.md",
202+
"file": "架构/架构设计.md",
146203
"followCursor": false,
147204
"showSearch": false,
148205
"searchQuery": ""
149206
},
150207
"icon": "lucide-list",
151-
"title": "Outline of nginx"
208+
"title": "架构设计 的大纲"
152209
}
153210
}
154-
]
211+
],
212+
"currentTab": 3
155213
}
156214
],
157215
"direction": "horizontal",
158-
"width": 300,
159-
"collapsed": true
216+
"width": 300
160217
},
161218
"left-ribbon": {
162219
"hiddenItems": {
163-
"switcher:Open quick switcher": false,
164-
"graph:Open graph view": false,
165-
"canvas:Create new canvas": false,
166-
"daily-notes:Open today's daily note": false,
167-
"templates:Insert template": false,
168-
"command-palette:Open command palette": false,
169-
"obsidian-excalidraw-plugin:New drawing": false
220+
"switcher:打开快速切换": false,
221+
"graph:查看关系图谱": false,
222+
"canvas:新建白板": false,
223+
"daily-notes:打开/创建今天的日记": false,
224+
"templates:插入模板": false,
225+
"command-palette:打开命令面板": false,
226+
"obsidian-excalidraw-plugin:新建绘图文件": false
170227
}
171228
},
172-
"active": "f01a2ddcd6c4d1bb",
229+
"active": "6e41c4bae6d0bed8",
173230
"lastOpenFiles": [
174-
"架构/知识学习模板.md"
231+
"架构/架构设计模板.md",
232+
"架构/架构设计.md",
233+
"middleware/nginx.md",
234+
"k8s/kubernetes_service.md",
235+
"k8s/kubernetes_network.md",
236+
"k8s/kubernetes.md",
237+
"k8s/kube_prometheus.md",
238+
"go/高并发.md",
239+
"go/go.md",
240+
"eBPF/ebpf专家.md",
241+
"eBPF/ebpf.md",
242+
"eBPF/bpftrace.md",
243+
"containerd/containerd.md",
244+
"calico/calico.md",
245+
"架构/分布式.md",
246+
"架构/知识学习模板.md",
247+
"middleware/redis.md",
248+
"go/go_package.md",
249+
"go/go_module.md",
250+
"containerd/docker.md",
251+
"架构/().md",
252+
"go/gRPC.md",
253+
"go/memory.md",
254+
"calico/calico架构.md",
255+
"middleware/etcd.md",
256+
"db/DBA(Database administrator).md",
257+
"k8s/attachments/Pasted image 20250430202140.png",
258+
"k8s/attachments/Pasted image 20250430202042.png",
259+
"k8s/attachments/Pasted image 20250430201959.png",
260+
"k8s/attachments/Pasted image 20250430201347.png",
261+
"k8s/attachments/Pasted image 20250430201322.png",
262+
"k8s/attachments/Pasted image 20250430201223.png",
263+
"k8s/attachments/Pasted image 20250430201154.png",
264+
"k8s/attachments/Pasted image 20250430201152.png",
265+
"k8s/attachments/Pasted image 20250430201106.png",
266+
"架构/attachments/Pasted image 20250430151319.png",
267+
"架构/attachments",
268+
"架构",
269+
"k8s/components/service.md~",
270+
"k8s/components/pod.md~",
271+
"harbor/harbor.md~",
272+
"containerd/containerd.md~",
273+
"k8s/components/ingress.md~",
274+
"k8s/components/cadvisor.md~",
275+
"k8s/components/controller-manager.md~",
276+
"k8s/components/attachments"
175277
]
176278
}

k8s/kubernetes_service.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
3+
4+
5+
6+
7+
8+
- 使用service将数据导出到外部
9+
使用场景:内部service需要再外部进行调试
10+
11+
```yaml
12+
apiVersion: v1
13+
kind: Service
14+
metadata:
15+
name: dp-proxy
16+
namespace: base-services
17+
spec:
18+
ports:
19+
- protocol: TCP
20+
port: 11090 # 服务暴露的端口,可以与 Endpoints 端口相同或不同
21+
targetPort: 11090 # 这里指向 Endpoints 中的端口
22+
type: ClusterIP # 默认类型,适用于内部访问
23+
24+
25+
---
26+
apiVersion: v1
27+
kind: Endpoints
28+
metadata:
29+
name: dp-proxy
30+
namespace: base-services
31+
subsets:
32+
- addresses:
33+
- ip: 192.168.38.31 # 外部服务的IP
34+
ports:
35+
- port: 11090 # 外部服务的端口
36+
```

架构/分布式.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11

2+
## CAP
23

34

5+
## 微服务架构
46

57

68

9+
## 微服务设计模式
710

811

912

0 commit comments

Comments
 (0)