@@ -47,7 +47,8 @@ On Linux nodes, the kubelet also relies on reading cgroups and various system fi
47
47
On Windows nodes, the kubelet collects metrics via a different mechanism that does not rely on
48
48
paths.
49
49
50
- There are also a few other files that are used by the kubelet as well as kubelet communicates using local Unix-domain sockets. Some are sockets that the
50
+ There are also a few other files that are used by the kubelet as well,
51
+ as kubelet communicates using local Unix-domain sockets. Some are sockets that the
51
52
kubelet listens on, and for other sockets the kubelet discovers them and then connects
52
53
as a client.
53
54
-->
@@ -62,7 +63,8 @@ kubelet 所使用的还有其他文件,包括其使用本地 Unix 域套接字
62
63
63
64
<!--
64
65
This page lists paths as Linux paths, which map to the Windows paths by adding a root disk
65
- `C:\` in place of `/` (unless specified otherwise). For example, `/var/lib/kubelet/device-plugins` maps to `C:\var\lib\kubelet\device-plugins`.
66
+ `C:\` in place of `/` (unless specified otherwise).
67
+ For example, `/var/lib/kubelet/device-plugins` maps to `C:\var\lib\kubelet\device-plugins`.
66
68
-->
67
69
本页列举的路径为 Linux 路径,若要映射到 Windows,你可以添加根磁盘 ` C:\ ` 替换 ` / ` (除非另行指定)。
68
70
例如,` /var/lib/kubelet/device-plugins ` 映射到 ` C:\var\lib\kubelet\device-plugins ` 。
@@ -162,35 +164,50 @@ Names of files:
162
164
### Checkpoint file for device manager {#device-manager-state}
163
165
164
166
Device manager creates checkpoints in the same directory with socket files: `/var/lib/kubelet/device-plugins/`.
165
- The name of a checkpoint file is `kubelet_internal_checkpoint` for [Device Manager](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager)
167
+ The name of a checkpoint file is `kubelet_internal_checkpoint` for
168
+ [Device Manager](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager)
166
169
167
- ### Pod status checkpoint storage {#pod-status-manager-state}
170
+ ### Pod resource checkpoints
168
171
-->
169
172
### 设备管理器的检查点文件 {#device-manager-state}
170
173
171
174
设备管理器在与套接字文件相同的目录(` /var/lib/kubelet/device-plugins/ ` )中创建检查点。
172
175
对于[ 设备管理器] ( /zh-cn/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager ) ,
173
176
检查点文件的名称为 ` kubelet_internal_checkpoint ` 。
174
177
175
- ### Pod 状态检查点存储 {#pod-status-manager-state }
178
+ ### Pod 状态检查点 {#pod-resource-checkpoints }
176
179
177
180
{{< feature-state feature_gate_name="InPlacePodVerticalScaling" >}}
178
181
179
182
<!--
180
- If your cluster has
181
- [in-place Pod vertical scaling](/docs/concepts/workloads/autoscaling/#in-place-resizing)
182
- enabled ([feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
183
- name `InPlacePodVerticalScaling`), then the kubelet stores a local record of allocated Pod resources.
183
+ If a node has enabled the `InPlacePodVerticalScaling`[feature gate](/docs/reference/command-line-tools-reference/feature-gates/),
184
+ the kubelet stores a local record of _allocated_ and _actuated_ Pod resources.
185
+ See [Resize CPU and Memory Resources assigned to Containers](/docs/tasks/configure-pod-container/resize-container-resources/)
186
+ for more details on how these records are used.
187
+ -->
188
+ 如果某个节点已启用了 ` InPlacePodVerticalScaling `
189
+ [ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) ,
190
+ 则 kubelet 存储有关 Pod 资源** 已分配** 和** 已应用** 状态的本地记录。
191
+ 有关如何使用这些记录的更多细节,
192
+ 请参阅[ 调整分配给容器的 CPU 和内存资源] ( /zh-cn/docs/tasks/configure-pod-container/resize-container-resources/ ) 。
193
+
194
+ <!--
195
+ Names of files:
196
+
197
+ - `allocated_pods_state` records the resources allocated to each pod running on the node
198
+ - `actuated_pods_state` records the resources that have been accepted by the runtime
199
+ for each pod pod running on the node
184
200
185
- The file name is `pod_status_manager_state` within the kubelet base directory
201
+ The files are located within the kubelet base directory
186
202
(`/var/lib/kubelet` by default on Linux; configurable using `--root-dir`).
187
203
-->
188
- 如果你的集群启用了[ 就地 Pod 垂直扩缩容] ( /zh-cn/docs/concepts/workloads/autoscaling/#in-place-resizing )
189
- ([ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) 名称为 ` InPlacePodVerticalScaling ` ),
190
- 则 kubelet 会在本地存储为 Pod 分配资源的记录。
204
+ 文件名称如下:
191
205
192
- 文件名为 ` pod_status_manager_state ` ,位于 kubelet 基础目录内
193
- (在 Linux 上默认为 ` /var/lib/kubelet ` ;你可以使用 ` --root-dir ` 进行配置)。
206
+ - ` allocated_pods_state ` :记录分配给该节点上每个 Pod 的资源。
207
+ - ` actuated_pods_state ` :记录运行时已接受并应用于该节点上每个 Pod 的资源。
208
+
209
+ 这些文件位于 kubelet 的基础目录中(在 Linux 系统中默认是 ` /var/lib/kubelet ` ;
210
+ 也可以通过 ` --root-dir ` 参数进行配置)。
194
211
195
212
<!--
196
213
### Container runtime
@@ -260,7 +277,8 @@ kubelet 查找的目录是 kubelet 基础目录下的 `plugins_registry`,
260
277
因此在典型的 Linux 节点上这意味着 ` /var/lib/kubelet/plugins_registry ` 。
261
278
262
279
<!--
263
- Note, for the device plugins there are two alternative registration mechanisms. Only one should be used for a given plugin.
280
+ Note, for the device plugins there are two alternative registration mechanisms
281
+ Only one should be used for a given plugin.
264
282
265
283
The types of plugins that can place socket files into that directory are:
266
284
@@ -294,6 +312,40 @@ stores state locally at `/var/lib/kubelet/graceful_node_shutdown_state`.
294
312
[ 节点体面关闭] ( /zh-cn/docs/concepts/cluster-administration/node-shutdown/#graceful-node-shutdown ) 将状态存储在本地目录
295
313
` /var/lib/kubelet/graceful_node_shutdown_state ` 。
296
314
315
+ <!--
316
+ ### Image Pull Records
317
+ -->
318
+ ### 镜像拉取记录 {#image-pull-records}
319
+
320
+ {{< feature-state feature_gate_name="KubeletEnsureSecretPulledImages" >}}
321
+
322
+ <!--
323
+ The kubelet stores records of attempted and successful image pulls, and uses it
324
+ to verify that the image was previously successfully pulled with the same credentials.
325
+ -->
326
+ kubelet 存储镜像拉取的尝试记录和成功记录,并使用这些记录来验证镜像是否曾使用相同的凭据被成功拉取过。
327
+
328
+ <!--
329
+ These records are cached as files in the `image_registry` directory within
330
+ the kubelet base directory. On a typical Linux node, this means `/var/lib/kubelet/image_manager`.
331
+ There are two subdirectories to `image_manager`:
332
+ * `pulling` - stores records about images the Kubelet is attempting to pull.
333
+ * `pulled` - stores records about images that were successfully pulled by the Kubelet,
334
+ along with metadata about the credentials used for the pulls.
335
+ -->
336
+ 这些记录作为文件缓存在 kubelet 基础目录下的 ` image_registry ` 目录中。
337
+ 在典型的 Linux 节点上,这个路径通常为 ` /var/lib/kubelet/image_manager ` 。
338
+ ` image_manager ` 目录下包含两个子目录:
339
+
340
+ * ` pulling ` :存储 kubelet 正在尝试拉取的镜像的相关记录。
341
+ * ` pulled ` :存储 kubelet 成功拉取的镜像记录,以及与拉取所用凭据相关的元数据。
342
+
343
+ <!--
344
+ See [Ensure Image Pull Credential Verification](/docs/concepts/containers/images#ensureimagepullcredentialverification)
345
+ for details.
346
+ -->
347
+ 更多细节请参阅[ 确保镜像拉取凭据验证] ( /zh-cn/docs/concepts/containers/images#ensureimagepullcredentialverification ) 。
348
+
297
349
<!--
298
350
## Security profiles & configuration
299
351
0 commit comments