Skip to content

Commit 401be8d

Browse files
committed
[zh-cn]sync node-v1
Signed-off-by: xin.li <[email protected]>
1 parent dc2d120 commit 401be8d

1 file changed

Lines changed: 65 additions & 39 deletions

File tree

  • content/zh-cn/docs/reference/kubernetes-api/cluster-resources

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

Lines changed: 65 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Node 是 Kubernetes 中的工作节点。
5555
-->
5656
- **spec** (<a href="{{< ref "../cluster-resources/node-v1#NodeSpec" >}}">NodeSpec</a>)
5757

58-
spec 定义节点的行为。
58+
`spec` 定义节点的行为。
5959
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
6060

6161
<!--
@@ -65,8 +65,8 @@ Node 是 Kubernetes 中的工作节点。
6565
-->
6666
- **status** (<a href="{{< ref "../cluster-resources/node-v1#NodeStatus" >}}">NodeStatus</a>)
6767

68-
此节点的最近观测状态。由系统填充。只读。
69-
更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
68+
此节点的最近观测状态。由系统填充。只读。更多信息:
69+
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
7070

7171
## NodeSpec {#NodeSpec}
7272

@@ -105,7 +105,8 @@ NodeSpec 描述了创建节点时使用的属性。
105105
-->
106106

107107
ConfigMapNodeConfigSource 包含引用某 ConfigMap 作为节点配置源的信息。
108-
此 API 自 1.22 版本起已被弃用:https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
108+
此 API 自 1.22 版本起已被弃用:
109+
https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
109110

110111
<!--
111112
- **configSource.configMap.kubeletConfigKey** (string), required
@@ -126,7 +127,7 @@ NodeSpec 描述了创建节点时使用的属性。
126127

127128
- **configSource.configMap.name** (string),必需
128129

129-
name 是被引用的 ConfigMap 的 metadata.name。
130+
`name` 是被引用的 ConfigMap 的 `metadata.name`
130131
此字段在所有情况下都是必需的。
131132

132133
<!--
@@ -137,7 +138,7 @@ NodeSpec 描述了创建节点时使用的属性。
137138

138139
- **configSource.configMap.namespace** (string),必需
139140

140-
namespace 是所引用的 ConfigMap 的 metadata.namespace。
141+
`namespace` 是所引用的 ConfigMap 的 `metadata.namespace`
141142
此字段在所有情况下都是必需的。
142143

143144
- **configSource.configMap.resourceVersion** (string)
@@ -146,23 +147,24 @@ NodeSpec 描述了创建节点时使用的属性。
146147
ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
147148
-->
148149

149-
resourceVersion 是所引用的 ConfigMap 的 metadata.resourceVersion。
150-
该字段在 Node.spec 中是禁止的,在 Node.status 中是必需的。
150+
`resourceVersion` 是所引用的 ConfigMap 的 `metadata.resourceVersion`
151+
该字段在 `Node.spec` 中是禁止的,在 `Node.status` 中是必需的。
151152

152153
- **configSource.configMap.uid** (string)
153154

154155
<!--
155156
UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
156157
-->
157158

158-
uid 是所引用的 ConfigMap 的 metadata.uid。
159-
该字段在 Node.spec 中是禁止的,在 Node.status 中是必需的。
159+
`uid` 是所引用的 ConfigMap 的 `metadata.uid`
160+
该字段在 `Node.spec` 中是禁止的,在 `Node.status` 中是必需的。
160161

161162
- **externalID** (string)
162163

163164
<!--
164165
Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966
165166
-->
167+
166168
已弃用。并非所有 kubelet 都会设置此字段。
167169
1.13 的版本之后会删除该字段。参见:https://issues.k8s.io/61966
168170

@@ -171,6 +173,7 @@ NodeSpec 描述了创建节点时使用的属性。
171173
<!--
172174
PodCIDR represents the pod IP range assigned to the node.
173175
-->
176+
174177
podCIDR 表示分配给节点的 Pod IP 范围。
175178

176179
- **podCIDRs** ([]string)
@@ -180,18 +183,20 @@ NodeSpec 描述了创建节点时使用的属性。
180183
181184
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.
182185
-->
186+
183187
**集合:唯一值将在合并期间被保留**
184188

185-
podCIDRs 表示分配给节点以供该节点上的 Pod 使用的 IP 范围。
186-
如果指定了该字段,则第 0 个条目必须与 podCIDR 字段匹配。
189+
`podCIDRs` 表示分配给节点以供该节点上的 Pod 使用的 IP 范围。
190+
如果指定了该字段,则第 0 个条目必须与 `podCIDR` 字段匹配。
187191
对于 IPv4 和 IPv6,它最多可以包含 1 个值。
188192

189193
- **providerID** (string)
190194

191195
<!--
192196
ID of the node assigned by the cloud provider in the format: \<ProviderName>://\<ProviderSpecificNodeID>
193197
-->
194-
云提供商分配的节点ID,格式为:\<ProviderName>://\<ProviderSpecificNodeID>
198+
199+
云提供商分配的节点ID,格式为:`<ProviderName>://<ProviderSpecificNodeID>`
195200

196201
- **taints** ([]Taint)
197202

@@ -200,6 +205,7 @@ NodeSpec 描述了创建节点时使用的属性。
200205
201206
If specified, the node's taints.
202207
-->
208+
203209
**原子:将在合并期间被替换**
204210

205211
如果设置了,则为节点的污点。
@@ -208,6 +214,7 @@ NodeSpec 描述了创建节点时使用的属性。
208214
<!--
209215
*The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.*
210216
-->
217+
211218
**此污点附加到的节点对任何不容忍污点的 Pod 都有“影响”。**
212219

213220
<!--
@@ -250,15 +257,15 @@ NodeSpec 描述了创建节点时使用的属性。
250257
TimeAdded represents the time at which the taint was added.
251258
-->
252259

253-
timeAdded 表示添加污点的时间。
260+
`timeAdded` 表示添加污点的时间。
254261

255262
<a name="Time"></a>
256263
<!--
257264
*Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.*
258265
-->
259266

260267
**Time 是 `time.Time` 的包装器,它支持对 YAML 和 JSON 的正确编组。
261-
time 包的许多工厂方法提供了包装器。**
268+
`time` 包的许多工厂方法提供了包装器。**
262269

263270
- **taints.value** (string)
264271

@@ -274,9 +281,9 @@ NodeSpec 描述了创建节点时使用的属性。
274281
Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
275282
-->
276283

277-
unschedulable 控制新 Pod 的节点可调度性。
278-
默认情况下,节点是可调度的。
279-
更多信息:https://kubernetes.io/zh-cn/docs/concepts/architecture/nodes/#manual-node-administration
284+
`unschedulable` 控制新 Pod 的节点可调度性。
285+
默认情况下,节点是可调度的。更多信息:
286+
https://kubernetes.io/zh-cn/docs/concepts/architecture/nodes/#manual-node-administration
280287

281288
## NodeStatus {#NodeStatus}
282289

@@ -300,16 +307,16 @@ NodeStatus 是有关节点当前状态的信息。
300307

301308
**Map:键 `type` 的唯一值将在合并期间保留**
302309

303-
节点可到达的地址列表。从云提供商处查询(如果有)。
304-
更多信息:https://kubernetes.io/zh-cn/docs/reference/node/node-status/#addresses
310+
节点可到达的地址列表。从云提供商处查询(如果有)。 更多信息:
311+
https://kubernetes.io/zh-cn/docs/reference/node/node-status/#addresses
305312

306313
注意:该字段声明为可合并,但合并键不够唯一,合并时可能导致数据损坏。
307314
调用者应改为使用完全替换性质的补丁操作。
308315
有关示例,请参见 https://pr.k8s.io/79391。
309316

310317
消费者应假设地址可以在节点的生命期内发生变化。
311318
然而在一些例外情况下这是不可能的,例如在自身状态中继承 Node 地址的 Pod
312-
或 downward API (`status.hostIP`) 的消费者。
319+
或 downward API`status.hostIP`的消费者。
313320

314321
<a name="NodeAddress"></a>
315322
<!--
@@ -343,14 +350,16 @@ NodeStatus 是有关节点当前状态的信息。
343350
<!--
344351
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
345352
-->
346-
allocatable 表示节点的可用于调度的资源。默认为容量。
353+
354+
`allocatable` 表示节点的可用于调度的资源。默认为容量。
347355

348356
- **capacity** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
349357

350358
<!--
351359
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
352360
-->
353-
capacity 代表一个节点的总资源。更多信息:
361+
362+
`capacity` 代表一个节点的总资源。更多信息:
354363
https://kubernetes.io/zh-cn/docs/reference/node/node-status/#capacity
355364

356365
- **conditions** ([]NodeCondition)
@@ -367,13 +376,14 @@ NodeStatus 是有关节点当前状态的信息。
367376

368377
**Map:键 `type` 的唯一值将在合并期间保留**
369378

370-
conditions 是当前观测到的节点状况的数组。
371-
更多信息:https://kubernetes.io/zh-cn/docs/reference/node/node-status/#condition
379+
`conditions` 是当前观测到的节点状况的数组。更多信息:
380+
https://kubernetes.io/zh-cn/docs/reference/node/node-status/#condition
372381

373382
<a name="NodeCondition"></a>
374383
<!--
375384
*NodeCondition contains condition information for a node.*
376385
-->
386+
377387
**NodeCondition 包含节点状况的信息。**
378388

379389
<!--
@@ -409,8 +419,8 @@ NodeStatus 是有关节点当前状态的信息。
409419
*Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.*
410420
-->
411421

412-
Time 是 `time.Time` 的包装器,它支持对 YAML 和 JSON 的正确编组。
413-
time 包的许多工厂方法提供了包装器。
422+
**Time 是 `time.Time` 的包装器,它支持对 YAML 和 JSON 的正确编组。
423+
`time` 包的许多工厂方法提供了包装器。**
414424

415425
- **conditions.lastTransitionTime** (Time)
416426

@@ -426,7 +436,7 @@ NodeStatus 是有关节点当前状态的信息。
426436
-->
427437

428438
**Time 是 `time.Time` 的包装器,它支持对 YAML 和 JSON 的正确编组。
429-
time 包的许多工厂方法提供了包装器。**
439+
`time` 包的许多工厂方法提供了包装器。**
430440

431441
- **conditions.message** (string)
432442

@@ -456,6 +466,7 @@ NodeStatus 是有关节点当前状态的信息。
456466
<!--
457467
*NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.*
458468
-->
469+
459470
**NodeConfigStatus 描述了由 Node.spec.configSource 分配的配置的状态。**
460471

461472
- **config.active** (NodeConfigSource)
@@ -464,8 +475,9 @@ NodeStatus 是有关节点当前状态的信息。
464475
Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error.
465476
-->
466477

467-
active 报告节点正在使用的检查点配置。
468-
active 将代表已分配配置的当前版本或当前 LastKnownGood 配置,具体取决于尝试使用已分配配置是否会导致错误。
478+
`active` 报告节点正在使用的检查点配置。
479+
`active` 将代表已分配配置的当前版本或当前 LastKnownGood 配置,
480+
具体取决于尝试使用已分配配置是否会导致错误。
469481

470482
<a name="NodeConfigSource"></a>
471483
<!--
@@ -480,15 +492,16 @@ NodeStatus 是有关节点当前状态的信息。
480492
ConfigMap is a reference to a Node's ConfigMap
481493
-->
482494

483-
configMap 是对 Node 的 ConfigMap 的引用。
495+
`configMap` 是对 Node 的 ConfigMap 的引用。
484496

485497
<a name="ConfigMapNodeConfigSource"></a>
486498
<!--
487499
*ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration*
488500
-->
489501

490502
**ConfigMapNodeConfigSource 包含引用某 ConfigMap 作为节点配置源的信息。
491-
此 API 自 1.22 版本起已被弃用:https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration**
503+
此 API 自 1.22 版本起已被弃用:
504+
https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration**
492505

493506
<!--
494507
- **config.active.configMap.kubeletConfigKey** (string), required
@@ -498,7 +511,7 @@ NodeStatus 是有关节点当前状态的信息。
498511

499512
- **config.active.configMap.kubeletConfigKey** (string),必需
500513

501-
kubeletConfigKey 声明所引用的 ConfigMap 的哪个键对应于 KubeletConfiguration 结构体,
514+
`kubeletConfigKey` 声明所引用的 ConfigMap 的哪个键对应于 KubeletConfiguration 结构体,
502515
该字段在所有情况下都是必需的。
503516

504517
<!--
@@ -509,7 +522,7 @@ NodeStatus 是有关节点当前状态的信息。
509522

510523
- **config.active.configMap.name** (string),必需
511524

512-
name 是所引用的 ConfigMap 的 `metadata.name`
525+
`name` 是所引用的 ConfigMap 的 `metadata.name`
513526
此字段在所有情况下都是必需的。
514527

515528
<!--
@@ -520,7 +533,7 @@ NodeStatus 是有关节点当前状态的信息。
520533

521534
- **config.active.configMap.namespace** (string),必需
522535

523-
namespace 是所引用的 ConfigMap 的 `metadata.namespace`
536+
`namespace` 是所引用的 ConfigMap 的 `metadata.namespace`
524537
此字段在所有情况下都是必需的。
525538

526539
- **config.active.configMap.resourceVersion** (string)
@@ -529,16 +542,16 @@ NodeStatus 是有关节点当前状态的信息。
529542
ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
530543
-->
531544

532-
resourceVersion 是所引用的 ConfigMap 的 `metadata.resourceVersion`
545+
`resourceVersion` 是所引用的 ConfigMap 的 `metadata.resourceVersion`
533546
该字段在 `Node.spec` 中是禁止的,在 `Node.status` 中是必需的。
534547

535548
- **config.active.configMap.uid** (string)
536549

537550
<!--
538551
UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. -->
539552

540-
uid 是所引用的 ConfigMap 的 metadata.uid。
541-
该字段在 Node.spec 中是禁止的,在 Node.status 中是必需的。
553+
`uid` 是所引用的 ConfigMap 的 `metadata.uid`
554+
该字段在 `Node.spec` 中是禁止的,在 `Node.status` 中是必需的。
542555

543556
- **config.assigned** (NodeConfigSource)
544557

@@ -574,7 +587,8 @@ NodeStatus 是有关节点当前状态的信息。
574587
-->
575588

576589
**ConfigMapNodeConfigSource 包含引用某 ConfigMap 为节点配置源的信息。
577-
此 API 自 1.22 版本起已被弃用:https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration**
590+
此 API 自 1.22 版本起已被弃用:
591+
https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration**
578592

579593
<!--
580594
- **config.assigned.configMap.kubeletConfigKey** (string), required
@@ -769,6 +783,18 @@ NodeStatus 是有关节点当前状态的信息。
769783

770784
给定端点的端口号。
771785

786+
- **declaredFeatures** ([]string)
787+
788+
<!--
789+
*Atomic: will be replaced during a merge*
790+
791+
DeclaredFeatures represents the features related to feature gates that are declared by the node.
792+
-->
793+
794+
**原子性:合并时将被替换**
795+
796+
`declaredFeatures` 表示节点声明的与特征门相关的特性。
797+
772798
<!--
773799
- **features** (NodeFeatures)
774800

0 commit comments

Comments
 (0)