Skip to content

Commit 8d31f62

Browse files
committed
2025-5-7:""
1 parent b7977c6 commit 8d31f62

File tree

20 files changed

+596
-305
lines changed

20 files changed

+596
-305
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/my-blog.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/custom.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* 调整主内容区最大宽度 */
2+
.post-single {
3+
max-width: 90%; /* 默认是 768px 或类似值 */
4+
margin: auto;
5+
}
6+
7+
.post-content {
8+
max-width: 90%; /* 默认是 768px 或类似值 */
9+
margin: auto;
10+
}
11+

content/posts/20250506/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
date = '2025-05-06T11:22:12+08:00'
44
draft = false
5-
title = 'K8s源代码分析:Kubelet(1)-主循环'
5+
title = 'K8s源代码分析:Kubelet'
66

77
+++
88

@@ -269,8 +269,6 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate)
269269

270270
5. 在 `HandlePodSyncs` 中,Kubelet 会将同步任务进一步分派给所谓的 "Pod Workers"。通常,Kubelet 会为每个活跃的 Pod(由其 UID 标识)维护一个专用的 **Pod Worker** (表现为一个后台 goroutine/协程)。这个 Worker 负责串行地处理与其关联的那个 Pod 的所有更新和生命周期事件(如创建、删除容器,配置网络,挂载卷,执行探针等)。这样做的好处是,对单个 Pod 的操作是顺序执行的,避免了复杂的并发控制,而不同 Pod 之间的操作则可以并行处理,提高了整体效率。`HandlePodSyncs` 的作用就是将待同步的 Pod 信息和操作类型传递给对应的 Pod Worker
271271

272-
1.
273-
274272

275273
### 四、总结一下
276274

content/posts/20250507/index.md

Lines changed: 432 additions & 0 deletions
Large diffs are not rendered by default.

hugo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
baseURL = 'https://yipeng1030.github.io/my-blog/'
22
languageCode = 'zh-cn'
33
title = 'Yipeng M'
4-
theme = 'hugo-PaperMod'
4+
theme = 'hugo-PaperMod'
5+
customCSS = ["css/custom.css"]

public/.DS_Store

0 Bytes
Binary file not shown.

public/assets/css/stylesheet.e1e6dadc898f65e6bedf14e8c41a70ef9356bed62cc9fa88657c7423937f1239.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)