Skip to content

Commit b216b49

Browse files
committed
[zh-cn] sync kubelet-config-file.md
Signed-off-by: xin.li <[email protected]>
1 parent b8d32a3 commit b216b49

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

content/zh-cn/docs/tasks/administer-cluster/kubelet-config-file.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,14 @@ kubelet 通过按字母数字顺序对**整个文件名**进行排序来处理
207207
例如,首先处理 `00-kubelet.conf`,然后用名为 `01-kubelet.conf` 的文件覆盖。
208208

209209
<!--
210-
These files may contain partial configurations and might not be valid config files by themselves.
211-
Validation is only performed on the final resulting configuration structure
212-
stored internally in the kubelet.
213-
This offers you flexibility in how you manage and combine kubelet configuration that comes from different sources.
214-
However, it's important to note that the behavior varies based on the data type of the configuration fields.
210+
These files may contain partial configurations but should not be invalid and must include type metadata, specifically `apiVersion` and `kind`.
211+
Validation is only performed on the final resulting configuration structure stored internally in the kubelet.
212+
This offers flexibility in managing and merging kubelet configurations from different sources while preventing undesirable configurations.
213+
However, it is important to note that behavior varies based on the data type of the configuration fields.
215214
-->
216-
这些文件可能包含部分配置,并且它们本身可能不是有效的配置文件
215+
这些文件可能包含部分配置,但不应无效,并且必须包含类型元数据,特别是 `apiVersion` 和 `kind`
217216
仅对 kubelet 内部存储的、最终生成的配置结构执行验证。
218-
这让你能够灵活管理和组合不同来源的 kubelet 配置
217+
这为管理和合并来自不同来源的 kubelet 配置提供了灵活性,同时防止了不需要的配置
219218
但是,请务必注意,产生的行为会根据配置字段的数据类型而有所不同。
220219

221220
<!--

0 commit comments

Comments
 (0)