Skip to content

Commit 50fafb1

Browse files
authored
Merge pull request #41167 from Zhuzhenghao/1.27/csi-node-v1
[zh] resync page csi-node-v1 & secret-v1
2 parents 508a901 + 6a7d78a commit 50fafb1

File tree

2 files changed

+83
-40
lines changed

2 files changed

+83
-40
lines changed

content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/csi-node-v1.md

Lines changed: 50 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ CSINode 包含指向相应节点对象的 OwnerReference。
4141

4242
<!--
4343
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
44-
metadata.name must be the Kubernetes node name.
44+
45+
Standard object's metadata. metadata.name must be the Kubernetes node name.
4546
4647
- **spec** (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINodeSpec" >}}">CSINodeSpec</a>), required
4748
spec is the specification of CSINode
4849
-->
4950
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
5051

51-
metadata.name 必须是 Kubernetes 节点的名称。
52+
标准的对象元数据。metadata.name 必须是 Kubernetes 节点的名称。
5253

5354
- **spec** (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINodeSpec" >}}">CSINodeSpec</a>),必需
5455

@@ -66,33 +67,34 @@ CSINodeSpec 包含一个节点上安装的所有 CSI 驱动规约有关的信息
6667
- **drivers** ([]CSINodeDriver), required
6768
6869
*Patch strategy: merge on key `name`*
69-
70+
7071
drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
7172
7273
<a name="CSINodeDriver"></a>
7374
*CSINodeDriver holds information about the specification of one CSI driver installed on a node*
7475
7576
- **drivers.name** (string), required
7677
77-
This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.
78+
name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.
7879
-->
7980
- **drivers** ([]CSINodeDriver),必需
8081

8182
**补丁策略:按照键 `name` 合并**
82-
83+
8384
drivers 是节点上存在的所有 CSI 驱动的信息列表。如果列表中的所有驱动均被卸载,则此字段可以为空。
84-
85+
8586
<a name="CSINodeDriver"></a>
8687
**CSINodeDriver 包含一个节点上安装的一个 CSI 驱动规约有关的信息。**
87-
88+
8889
- **drivers.name** (string),必需
8990

90-
这是该对象引用的 CSI 驱动的名称。此字段值必须是针对该驱动由 CSI GetPluginName() 调用返回的相同名称。
91+
name 表示该对象引用的 CSI 驱动的名称。此字段值必须是针对该驱动由 CSI GetPluginName() 调用返回的相同名称。
9192

92-
<!--
93+
<!--
9394
- **drivers.nodeID** (string), required
9495
nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.
95-
-->
96+
-->
97+
9698
- **drivers.nodeID** (string),必需
9799

98100
从驱动角度来看,这是节点的 nodeID。
@@ -102,35 +104,41 @@ CSINodeSpec 包含一个节点上安装的所有 CSI 驱动规约有关的信息
102104
它可以藉此字段使用存储系统所理解的 ID 引用节点名称,例如使用 “nodeA” 而不是 “node1”。
103105
此字段是必需的。
104106

105-
<!--
107+
<!--
106108
- **drivers.allocatable** (VolumeNodeResources)
109+
107110
allocatable represents the volume resources of a node that are available for scheduling. This field is beta.
108111
109112
<a name="VolumeNodeResources"></a>
110113
*VolumeNodeResources is a set of resource limits for scheduling of volumes.*
114+
-->
111115

112-
- **drivers.allocatable.count** (int32)
113-
Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.
114-
-->
115116
- **drivers.allocatable** (VolumeNodeResources)
116117

117118
allocatable 表示一个节点上可供调度的卷资源。此字段处于 beta 阶段。
118-
119+
119120
<a name="VolumeNodeResources"></a>
121+
120122
**VolumeNodeResources 是调度卷时所用的一组资源限制。**
121-
123+
<!--
124+
- **drivers.allocatable.count** (int32)
125+
126+
count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.
127+
-->
128+
122129
- **drivers.allocatable.count** (int32)
123130

124131
这是一个节点上可使用的、由 CSI 驱动管理的独立卷个数的上限。
125132
挂接并挂载到一个节点上的卷被视为被使用一次,不是两次。
126133
相同的规则适用于同一个节点上多个 Pod 之间共享的同一个卷。
127134
如果未指定此字段,则该节点上支持的卷数量是无限的。
128135

129-
<!--
136+
<!--
130137
- **drivers.topologyKeys** ([]string)
131138
132139
topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.
133-
-->
140+
-->
141+
134142
- **drivers.topologyKeys** ([]string)
135143

136144
topologyKeys 是驱动支持的键的列表。
@@ -181,6 +189,7 @@ CSINodeList 是 CSINode 对象的集合。
181189
<hr>
182190

183191
### `get` 读取指定的 CSINode
192+
184193
#### HTTP 请求
185194

186195
GET /apis/storage.k8s.io/v1/csinodes/{name}
@@ -263,6 +272,10 @@ GET /apis/storage.k8s.io/v1/csinodes
263272

264273
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
265274

275+
- **sendInitialEvents** (**查询参数**): boolean
276+
277+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
278+
266279
- **timeoutSeconds** (**查询参数**): integer
267280

268281
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@@ -297,6 +310,7 @@ POST /apis/storage.k8s.io/v1/csinodes
297310
- **pretty** (*in query*): string
298311
-->
299312
#### 参数
313+
300314
- **body**: <a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINode" >}}">CSINode</a>,必需
301315

302316
- **dryRun** (**查询参数**): string
@@ -332,6 +346,7 @@ POST /apis/storage.k8s.io/v1/csinodes
332346
#### HTTP Request
333347
-->
334348
### `update` 替换指定的 CSINode
349+
335350
#### HTTP 请求
336351

337352
PUT /apis/storage.k8s.io/v1/csinodes/{name}
@@ -347,6 +362,7 @@ PUT /apis/storage.k8s.io/v1/csinodes/{name}
347362
- **pretty** (*in query*): string
348363
-->
349364
#### 参数
365+
350366
- **name** (**路径参数**): string,必需
351367

352368
CSINode 的名称
@@ -373,6 +389,7 @@ PUT /apis/storage.k8s.io/v1/csinodes/{name}
373389
#### Response
374390
-->
375391
#### 响应
392+
376393
200 (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINode" >}}">CSINode</a>): OK
377394

378395
201 (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINode" >}}">CSINode</a>): Created
@@ -384,6 +401,7 @@ PUT /apis/storage.k8s.io/v1/csinodes/{name}
384401
#### HTTP Request
385402
-->
386403
### `patch` 部分更新指定的 CSINode
404+
387405
#### HTTP 请求
388406

389407
PATCH /apis/storage.k8s.io/v1/csinodes/{name}
@@ -400,6 +418,7 @@ PATCH /apis/storage.k8s.io/v1/csinodes/{name}
400418
- **pretty** (*in query*): string
401419
-->
402420
#### 参数
421+
403422
- **name** (**路径参数**): string,必需
404423

405424
CSINode 的名称
@@ -430,6 +449,7 @@ PATCH /apis/storage.k8s.io/v1/csinodes/{name}
430449
#### Response
431450
-->
432451
#### 响应
452+
433453
200 (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINode" >}}">CSINode</a>): OK
434454

435455
201 (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINode" >}}">CSINode</a>): Created
@@ -441,7 +461,9 @@ PATCH /apis/storage.k8s.io/v1/csinodes/{name}
441461
#### HTTP Request
442462
-->
443463
### `delete` 删除 CSINode
464+
444465
#### HTTP 请求
466+
445467
DELETE /apis/storage.k8s.io/v1/csinodes/{name}
446468

447469
<!--
@@ -481,6 +503,7 @@ DELETE /apis/storage.k8s.io/v1/csinodes/{name}
481503
#### Response
482504
-->
483505
#### 响应
506+
484507
200 (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINode" >}}">CSINode</a>): OK
485508

486509
202 (<a href="{{< ref "../config-and-storage-resources/csi-node-v1#CSINode" >}}">CSINode</a>): Accepted
@@ -492,7 +515,9 @@ DELETE /apis/storage.k8s.io/v1/csinodes/{name}
492515
#### HTTP Request
493516
-->
494517
### `deletecollection` 删除 CSINode 的集合
518+
495519
#### HTTP 请求
520+
496521
DELETE /apis/storage.k8s.io/v1/csinodes
497522

498523
<!--
@@ -511,6 +536,7 @@ DELETE /apis/storage.k8s.io/v1/csinodes
511536
- **timeoutSeconds** (*in query*): integer
512537
-->
513538
#### 参数
539+
514540
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
515541

516542
- **continue** (**查询参数**): string
@@ -553,6 +579,10 @@ DELETE /apis/storage.k8s.io/v1/csinodes
553579

554580
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
555581

582+
- **sendInitialEvents** (**查询参数**): boolean
583+
584+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
585+
556586
- **timeoutSeconds** (**查询参数**): integer
557587

558588
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@@ -561,6 +591,7 @@ DELETE /apis/storage.k8s.io/v1/csinodes
561591
#### Response
562592
-->
563593
#### 响应
594+
564595
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
565596

566-
401: Unauthorized
597+
401: Unauthorized

0 commit comments

Comments
 (0)