Merge pull request #46492 from my-git9/pt-14039

[zh-cn] sync kubelet-config-file.md
pull/46437/head
Kubernetes Prow Robot 2024-05-22 19:26:26 -07:00 committed by GitHub
commit 1a347d0f02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 7 deletions

View File

@ -207,15 +207,14 @@ kubelet 通过按字母数字顺序对**整个文件名**进行排序来处理
例如,首先处理 `00-kubelet.conf`,然后用名为 `01-kubelet.conf` 的文件覆盖。
<!--
These files may contain partial configurations and might not be valid config files by themselves.
Validation is only performed on the final resulting configuration structure
stored internally in the kubelet.
This offers you flexibility in how you manage and combine kubelet configuration that comes from different sources.
However, it's important to note that the behavior varies based on the data type of the configuration fields.
These files may contain partial configurations but should not be invalid and must include type metadata, specifically `apiVersion` and `kind`.
Validation is only performed on the final resulting configuration structure stored internally in the kubelet.
This offers flexibility in managing and merging kubelet configurations from different sources while preventing undesirable configurations.
However, it is important to note that behavior varies based on the data type of the configuration fields.
-->
这些文件可能包含部分配置,并且它们本身可能不是有效的配置文件
这些文件可能包含部分配置,但不应无效,并且必须包含类型元数据,特别是 `apiVersion``kind`
仅对 kubelet 内部存储的、最终生成的配置结构执行验证。
让你能够灵活管理和组合不同来源的 kubelet 配置。
为管理和合并来自不同来源的 kubelet 配置提供了灵活性,同时防止了不需要的配置。
但是,请务必注意,产生的行为会根据配置字段的数据类型而有所不同。
<!--