Skip to content

Commit 98c48ae

Browse files
authored
Merge pull request #40667 from windsonsea/cidrv1a1
[zh] sync cluster-cidr-v1alpha1.md
2 parents 612fa88 + 440fc5c commit 98c48ae

File tree

1 file changed

+94
-6
lines changed

1 file changed

+94
-6
lines changed

content/zh-cn/docs/reference/kubernetes-api/cluster-resources/cluster-cidr-v1alpha1.md

Lines changed: 94 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ClusterCIDR 表示启用 MultiCIDRRangeAllocator 时针对每个节点 Pod CIDR
5353
- **spec** (<a href="{{< ref "../cluster-resources/cluster-cidr-v1alpha1#ClusterCIDRSpec" >}}">ClusterCIDRSpec</a>)
5454

5555
<!--
56-
Spec is the desired state of the ClusterCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
56+
spec is the desired state of the ClusterCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
5757
-->
5858
spec 是 ClusterCIDR 的预期状态。更多信息:
5959
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
@@ -70,7 +70,7 @@ ClusterCIDRSpec 定义 ClusterCIDR 的预期状态。
7070
<!--
7171
- **perNodeHostBits** (int32), required
7272
73-
PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.
73+
perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.
7474
-->
7575
- **perNodeHostBits** (int32),必需
7676

@@ -83,7 +83,7 @@ ClusterCIDRSpec 定义 ClusterCIDR 的预期状态。
8383
- **ipv4** (string)
8484

8585
<!--
86-
IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of IPv4 and IPv6 must be specified. This field is immutable.
86+
ipv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of ipv4 and ipv6 must be specified. This field is immutable.
8787
-->
8888

8989
ipv4 以 CIDR 表示法定义 IPv4 IP 块(例如 “10.0.0.0/8”)。
@@ -92,7 +92,7 @@ ClusterCIDRSpec 定义 ClusterCIDR 的预期状态。
9292
- **ipv6** (string)
9393

9494
<!--
95-
IPv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). At least one of IPv4 and IPv6 must be specified. This field is immutable.
95+
ipv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). At least one of ipv4 and ipv6 must be specified. This field is immutable.
9696
-->
9797

9898
ipv6 以 CIDR 表示法定义 IPv6 IP 块(例如 “2001:db8::/64”)。
@@ -101,7 +101,7 @@ ClusterCIDRSpec 定义 ClusterCIDR 的预期状态。
101101
- **nodeSelector** (NodeSelector)
102102

103103
<!--
104-
NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable.
104+
nodeSelector defines which nodes the config is applicable to. An empty or nil nodeSelector selects all nodes. This field is immutable.
105105
106106
<a name="NodeSelector"></a>
107107
*A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.*
@@ -171,15 +171,19 @@ ClusterCIDRList 包含 ClusterCIDR 的列表。
171171
<!--
172172
- **items** ([]<a href="{{< ref "../cluster-resources/cluster-cidr-v1alpha1#ClusterCIDR" >}}">ClusterCIDR</a>), required
173173
174-
Items is the list of ClusterCIDRs.
174+
items is the list of ClusterCIDRs.
175175
-->
176176
- **items** ([]<a href="{{< ref "../cluster-resources/cluster-cidr-v1alpha1#ClusterCIDR" >}}">ClusterCIDR</a>),必需
177177

178178
items 是 ClusterCIDRs 的列表。
179179

180180
<!--
181181
## Operations {#Operations}
182+
183+
<hr>
184+
182185
### `get` read the specified ClusterCIDR
186+
183187
#### HTTP Request
184188
-->
185189
## 操作 {#Operations}
@@ -233,16 +237,50 @@ GET /apis/networking.k8s.io/v1alpha1/clustercidrs
233237

234238
<!--
235239
#### Parameters
240+
236241
- **allowWatchBookmarks** (*in query*): boolean
242+
243+
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
244+
237245
- **continue** (*in query*): string
246+
247+
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
248+
238249
- **fieldSelector** (*in query*): string
250+
251+
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
252+
239253
- **labelSelector** (*in query*): string
254+
255+
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
256+
240257
- **limit** (*in query*): integer
258+
259+
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
260+
241261
- **pretty** (*in query*): string
262+
263+
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
264+
242265
- **resourceVersion** (*in query*): string
266+
267+
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
268+
243269
- **resourceVersionMatch** (*in query*): string
270+
271+
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
272+
273+
- **sendInitialEvents** (*in query*): boolean
274+
275+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
276+
244277
- **timeoutSeconds** (*in query*): integer
278+
279+
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
280+
245281
- **watch** (*in query*): boolean
282+
283+
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
246284
-->
247285
#### 参数
248286

@@ -278,6 +316,10 @@ GET /apis/networking.k8s.io/v1alpha1/clustercidrs
278316

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

319+
- **sendInitialEvents** (**查询参数**):boolean
320+
321+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
322+
281323
- **timeoutSeconds** (**查询参数**):integer
282324

283325
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@@ -308,6 +350,7 @@ POST /apis/networking.k8s.io/v1alpha1/clustercidrs
308350

309351
<!--
310352
#### Parameters
353+
311354
- **body**: <a href="{{< ref "../cluster-resources/cluster-cidr-v1alpha1#ClusterCIDR" >}}">ClusterCIDR</a>, required
312355
- **dryRun** (*in query*): string
313356
- **fieldManager** (*in query*): string
@@ -360,6 +403,7 @@ PUT /apis/networking.k8s.io/v1alpha1/clustercidrs/{name}
360403

361404
<!--
362405
#### Parameters
406+
363407
- **name** (*in path*): string, required
364408
name of the ClusterCIDR
365409
- **body**: <a href="{{< ref "../cluster-resources/cluster-cidr-v1alpha1#ClusterCIDR" >}}">ClusterCIDR</a>, required
@@ -416,6 +460,7 @@ PATCH /apis/networking.k8s.io/v1alpha1/clustercidrs/{name}
416460

417461
<!--
418462
#### Parameters
463+
419464
- **name** (*in path*): string, required
420465
name of the ClusterCIDR
421466
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
@@ -476,6 +521,7 @@ DELETE /apis/networking.k8s.io/v1alpha1/clustercidrs/{name}
476521

477522
<!--
478523
#### Parameters
524+
479525
- **name** (*in path*): string, required
480526
name of the ClusterCIDR
481527
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
@@ -532,18 +578,56 @@ DELETE /apis/networking.k8s.io/v1alpha1/clustercidrs
532578

533579
<!--
534580
#### Parameters
581+
535582
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
583+
536584
- **continue** (*in query*): string
585+
586+
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
587+
537588
- **dryRun** (*in query*): string
589+
590+
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
591+
538592
- **fieldSelector** (*in query*): string
593+
594+
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
595+
539596
- **gracePeriodSeconds** (*in query*): integer
597+
598+
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
599+
540600
- **labelSelector** (*in query*): string
601+
602+
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
603+
541604
- **limit** (*in query*): integer
605+
606+
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
607+
542608
- **pretty** (*in query*): string
609+
610+
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
611+
543612
- **propagationPolicy** (*in query*): string
613+
614+
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
615+
544616
- **resourceVersion** (*in query*): string
617+
618+
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
619+
545620
- **resourceVersionMatch** (*in query*): string
621+
622+
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
623+
624+
- **sendInitialEvents** (*in query*): boolean
625+
626+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
627+
546628
- **timeoutSeconds** (*in query*): integer
629+
630+
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
547631
-->
548632
#### 参数
549633

@@ -589,6 +673,10 @@ DELETE /apis/networking.k8s.io/v1alpha1/clustercidrs
589673

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

676+
- **sendInitialEvents** (**查询参数**):boolean
677+
678+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
679+
592680
- **timeoutSeconds** (**查询参数**):integer
593681

594682
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>

0 commit comments

Comments
 (0)