Skip to content

Commit f27236b

Browse files
committed
[zh] Sync an api doc: cluster-resources/node-v1.md
1 parent 863ea4d commit f27236b

File tree

1 file changed

+128
-11
lines changed
  • content/zh-cn/docs/reference/kubernetes-api/cluster-resources

1 file changed

+128
-11
lines changed

content/zh-cn/docs/reference/kubernetes-api/cluster-resources/node-v1.md

Lines changed: 128 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ api_metadata:
66
content_type: "api_reference"
77
description: "Node 是 Kubernetes 中的工作节点。"
88
title: "Node"
9-
weight: 1
9+
weight: 8
1010
---
1111
<!--
1212
api_metadata:
@@ -16,7 +16,8 @@ api_metadata:
1616
content_type: "api_reference"
1717
description: "Node is a worker node in Kubernetes."
1818
title: "Node"
19-
weight: 1
19+
weight: 8
20+
auto_generated: true
2021
-->
2122

2223
`apiVersion: v1`
@@ -173,9 +174,13 @@ NodeSpec 描述了创建节点时使用的属性。
173174

174175
- **podCIDRs** ([]string)
175176

176-
<!--
177+
<!--
178+
*Set: unique values will be kept during a merge*
179+
177180
podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.
178181
-->
182+
**集合:唯一值将在合并期间被保留**
183+
179184
podCIDRs 表示分配给节点以供该节点上的 Pod 使用的 IP 范围。
180185
如果指定了该字段,则第 0 个条目必须与 podCIDR 字段匹配。
181186
对于 IPv4 和 IPv6,它最多可以包含 1 个值。
@@ -189,9 +194,13 @@ NodeSpec 描述了创建节点时使用的属性。
189194

190195
- **taints** ([]Taint)
191196

192-
<!--
197+
<!--
198+
*Atomic: will be replaced during a merge*
199+
193200
If specified, the node's taints.
194201
-->
202+
**原子:将在合并期间被替换**
203+
195204
如果设置了,则为节点的污点。
196205

197206
<a name="Taint"></a>
@@ -268,10 +277,14 @@ NodeStatus 是有关节点当前状态的信息。
268277
<!--
269278
*Patch strategy: merge on key `type`*
270279
280+
*Map: unique values on key type will be kept during a merge*
281+
271282
List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).
272283
-->
273284
**补丁策略:根据 `type` 键执行合并操作**
274285

286+
**Map:键 `type` 的唯一值将在合并期间保留**
287+
275288
节点可到达的地址列表。从云提供商处查询(如果有)。
276289
更多信息: https://kubernetes.io/zh-cn/docs/concepts/architecture/nodes/#addresses
277290

@@ -319,20 +332,24 @@ NodeStatus 是有关节点当前状态的信息。
319332
- **capacity** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
320333

321334
<!--
322-
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
335+
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
323336
-->
324-
capacity 代表一个节点的总资源。
325-
更多信息: https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#capacity
337+
capacity 代表一个节点的总资源。更多信息:
338+
https://kubernetes.io/zh-cn/docs/reference/node/node-status/#capacity
326339

327340
- **conditions** ([]NodeCondition)
328341

329342
<!--
330343
*Patch strategy: merge on key `type`*
344+
345+
*Map: unique values on key type will be kept during a merge*
331346
332347
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
333348
-->
334349
**补丁策略:根据 `type` 键执行合并操作**
335350

351+
**Map:键 `type` 的唯一值将在合并期间保留**
352+
336353
conditions 是当前观测到的节点状况的数组。
337354
更多信息: https://kubernetes.io/zh-cn/docs/concepts/architecture/nodes/#condition
338355

@@ -604,7 +621,7 @@ NodeStatus 是有关节点当前状态的信息。
604621
后期发生的错误(例如加载或验证检查点配置)将导致回滚到 LastKnownGood。
605622
在后一种情况下,通常可以通过修复 spec.sonfigSource 中 assigned 配置来解决错误。
606623
你可以通过在 Kubelet 日志中搜索错误消息来找到更多的调试信息。
607-
error 是错误状态的人类可读描述;机器可以检查 error 是否为空,但不应依赖跨 Kubelet 版本的 error 文本的稳定性。
624+
error 是错误状态的人类可读描述;机器可以检查 error 是否为空,但不应依赖跨 kubelet 版本的 error 文本的稳定性。
608625

609626
- **config.lastKnownGood** (NodeConfigSource)
610627

@@ -731,11 +748,40 @@ NodeStatus 是有关节点当前状态的信息。
731748

732749
给定端点的端口号。
733750

751+
<!--
752+
- **features** (NodeFeatures)
753+
754+
Features describes the set of features implemented by the CRI implementation.
755+
756+
<a name="NodeFeatures"></a>
757+
*NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.*
758+
-->
759+
- **features** (NodeFeatures)
760+
761+
features 描述由 CRI 实现所实现的一组特性。
762+
763+
<a name="NodeFeatures"></a>
764+
**NodeFeatures 描述由 CRI 实现所实现的一组特性。
765+
NodeFeatures 中包含的特性应仅依赖于 CRI 实现,而与运行时处理程序无关。**
766+
767+
- **features.supplementalGroupsPolicy** (boolean)
768+
769+
<!--
770+
SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.
771+
-->
772+
773+
如果运行时支持 SupplementalGroupsPolicy 和 ContainerUser,则将 supplementalGroupsPolicy 设置为 true。
774+
734775
- **images** ([]ContainerImage)
735776

736777
<!--
778+
*Atomic: will be replaced during a merge*
779+
737780
List of container images on this node
738781
-->
782+
783+
**原子:将在合并期间被替换**
784+
739785
该节点上的容器镜像列表。
740786

741787
<a name="ContainerImage"></a>
@@ -747,9 +793,13 @@ NodeStatus 是有关节点当前状态的信息。
747793
- **images.names** ([]string)
748794

749795
<!--
796+
*Atomic: will be replaced during a merge*
797+
750798
Names by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"]
751799
-->
752800

801+
**原子:将在合并期间被替换**
802+
753803
已知此镜像的名称。
754804
例如 ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"]
755805

@@ -818,12 +868,12 @@ NodeStatus 是有关节点当前状态的信息。
818868
<!--
819869
- **nodeInfo.kubeProxyVersion** (string), required
820870
821-
KubeProxy Version reported by the node.
871+
Deprecated: KubeProxy Version reported by the node.
822872
-->
823873

824874
- **nodeInfo.kubeProxyVersion** (string), 必需
825875

826-
节点报告的 KubeProxy 版本。
876+
已弃用:节点报告的 KubeProxy 版本。
827877

828878
<!--
829879
- **nodeInfo.kubeletVersion** (string), required
@@ -833,7 +883,7 @@ NodeStatus 是有关节点当前状态的信息。
833883

834884
- **nodeInfo.kubeletVersion** (string), 必需
835885

836-
节点报告的 Kubelet 版本。
886+
节点报告的 kubelet 版本。
837887

838888
<!--
839889
- **nodeInfo.machineID** (string), required
@@ -889,11 +939,78 @@ NodeStatus 是有关节点当前状态的信息。
889939

890940
该字段从未填充,现在已被弃用。
891941

942+
<!--
943+
- **runtimeHandlers** ([]NodeRuntimeHandler)
944+
945+
*Atomic: will be replaced during a merge*
946+
947+
The available runtime handlers.
948+
949+
<a name="NodeRuntimeHandler"></a>
950+
*NodeRuntimeHandler is a set of runtime handler information.*
951+
-->
952+
- **runtimeHandlers** ([]NodeRuntimeHandler)
953+
954+
**原子:将在合并期间被替换**
955+
956+
可用的运行时处理程序。
957+
958+
<a name="NodeRuntimeHandler"></a>
959+
**NodeRuntimeHandler 是一组运行时处理程序信息。**
960+
961+
<!--
962+
- **runtimeHandlers.features** (NodeRuntimeHandlerFeatures)
963+
964+
Supported features.
965+
966+
<a name="NodeRuntimeHandlerFeatures"></a>
967+
*NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.*
968+
-->
969+
970+
- **runtimeHandlers.features** (NodeRuntimeHandlerFeatures)
971+
972+
支持的特性。
973+
974+
<a name="NodeRuntimeHandlerFeatures"></a>
975+
**NodeRuntimeHandlerFeatures 是由运行时处理程序所实现的一组特性。**
976+
977+
<!--
978+
- **runtimeHandlers.features.recursiveReadOnlyMounts** (boolean)
979+
980+
RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.
981+
982+
- **runtimeHandlers.features.userNamespaces** (boolean)
983+
984+
UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
985+
-->
986+
987+
- **runtimeHandlers.features.recursiveReadOnlyMounts** (boolean)
988+
989+
如果运行时处理程序支持 RecursiveReadOnlyMounts,则将 recursiveReadOnlyMounts 设置为 true。
990+
991+
- **runtimeHandlers.features.userNamespaces** (boolean)
992+
993+
如果运行时处理程序支持包括数据卷所用的 UserNamespaces,则将 userNamespaces 设置为 true。
994+
995+
<!--
996+
- **runtimeHandlers.name** (string)
997+
998+
Runtime handler name. Empty for the default runtime handler.
999+
-->
1000+
1001+
- **runtimeHandlers.name** (string)
1002+
1003+
运行时处理程序名称。默认运行时处理程序为空。
1004+
8921005
- **volumesAttached** ([]AttachedVolume)
8931006

8941007
<!--
1008+
*Atomic: will be replaced during a merge*
1009+
8951010
List of volumes that are attached to the node.
8961011
-->
1012+
**原子:将在合并期间被替换**
1013+
8971014
附加到节点的卷的列表。
8981015

8991016
<a name="AttachedVolume"></a>

0 commit comments

Comments
 (0)