Skip to content

Commit eea1299

Browse files
committed
[zh-cn] sync cluster-role-binding stateful-set priority-class-v1 pod-template-v1 deploy
Signed-off-by: xin.li <[email protected]>
1 parent d68b5e9 commit eea1299

File tree

5 files changed

+109
-8
lines changed

5 files changed

+109
-8
lines changed

content/zh-cn/docs/reference/kubernetes-api/authorization-resources/cluster-role-binding-v1.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterrolebindings
227227
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
228228
- **resourceVersionMatch** (*in query*): string
229229
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
230+
- **sendInitialEvents** (*in query*): boolean
231+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
230232
- **timeoutSeconds** (*in query*): integer
231233
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
232234
- **watch** (*in query*): boolean
@@ -266,6 +268,10 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterrolebindings
266268

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

271+
- **sendInitialEvents** (**查询参数**): boolean
272+
273+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
274+
269275
- **timeoutSeconds** (**查询参数**): integer
270276

271277
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@@ -557,6 +563,8 @@ DELETE /apis/rbac.authorization.k8s.io/v1/clusterrolebindings
557563
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
558564
- **resourceVersionMatch** (*in query*): string
559565
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
566+
- **sendInitialEvents** (*in query*): boolean
567+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
560568
- **timeoutSeconds** (*in query*): integer
561569
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
562570
-->
@@ -604,6 +612,10 @@ DELETE /apis/rbac.authorization.k8s.io/v1/clusterrolebindings
604612

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

615+
- **sendInitialEvents** (**查询参数**): boolean
616+
617+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
618+
607619
- **timeoutSeconds** (**查询参数**): integer
608620

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

content/zh-cn/docs/reference/kubernetes-api/workload-resources/deployment-v1.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ DeploymentSpec 定义 Deployment 预期行为的规约。
7979
8080
- **template** (<a href="{{< ref "../workload-resources/pod-template-v1#PodTemplateSpec" >}}">PodTemplateSpec</a>), required
8181
82-
Template describes the pods that will be created.
82+
Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always".
8383
-->
8484
- **selector** (<a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a>),必需
8585

@@ -88,7 +88,8 @@ DeploymentSpec 定义 Deployment 预期行为的规约。
8888

8989
- **template** (<a href="{{< ref "../workload-resources/pod-template-v1#PodTemplateSpec" >}}">PodTemplateSpec</a>),必需
9090

91-
template 描述将要创建的 Pod。
91+
template 描述将要创建的 Pod。`template.spec.restartPolicy`
92+
唯一被允许的值是 `Always`
9293

9394
<!--
9495
- **replicas** (int32)
@@ -521,6 +522,7 @@ GET /apis/apps/v1/namespaces/{namespace}/deployments
521522
- **pretty** (*in query*): string
522523
- **resourceVersion** (*in query*): string
523524
- **resourceVersionMatch** (*in query*): string
525+
- **sendInitialEvents** (*in query*): boolean
524526
- **timeoutSeconds** (*in query*): integer
525527
- **watch** (*in query*): boolean
526528
-->
@@ -562,6 +564,10 @@ GET /apis/apps/v1/namespaces/{namespace}/deployments
562564

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

567+
- **sendInitialEvents** (**查询参数**): boolean
568+
569+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
570+
565571
- **timeoutSeconds** (**查询参数**): integer
566572

567573
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@@ -599,6 +605,7 @@ GET /apis/apps/v1/deployments
599605
- **pretty** (*in query*): string
600606
- **resourceVersion** (*in query*): string
601607
- **resourceVersionMatch** (*in query*): string
608+
- **sendInitialEvents** (*in query*): boolean
602609
- **timeoutSeconds** (*in query*): integer
603610
- **watch** (*in query*): boolean
604611
-->
@@ -636,6 +643,10 @@ GET /apis/apps/v1/deployments
636643

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

646+
- **sendInitialEvents** (**查询参数**): boolean
647+
648+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
649+
639650
- **timeoutSeconds** (**查询参数**): integer
640651

641652
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@@ -1043,6 +1054,7 @@ DELETE /apis/apps/v1/namespaces/{namespace}/deployments
10431054
- **propagationPolicy** (*in query*): string
10441055
- **resourceVersion** (*in query*): string
10451056
- **resourceVersionMatch** (*in query*): string
1057+
- **sendInitialEvents** (*in query*): boolean
10461058
- **timeoutSeconds** (*in query*): integer
10471059
-->
10481060
#### 参数
@@ -1093,6 +1105,10 @@ DELETE /apis/apps/v1/namespaces/{namespace}/deployments
10931105

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

1108+
- **sendInitialEvents** (**查询参数**): boolean
1109+
1110+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
1111+
10961112
- **timeoutSeconds** (**查询参数**): integer
10971113

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

content/zh-cn/docs/reference/kubernetes-api/workload-resources/pod-template-v1.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@ GET /api/v1/namespaces/{namespace}/podtemplates
246246

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

249+
<!--
250+
- **sendInitialEvents** (*in query*): boolean
251+
252+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
253+
-->
254+
- **sendInitialEvents** (**查询参数**): boolean
255+
256+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
257+
249258
<!--
250259
- **timeoutSeconds** (*in query*): integer
251260
-->
@@ -341,6 +350,15 @@ GET /api/v1/podtemplates
341350

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

353+
<!--
354+
- **sendInitialEvents** (*in query*): boolean
355+
356+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
357+
-->
358+
- **sendInitialEvents** (**查询参数**): boolean
359+
360+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
361+
344362
<!--
345363
- **timeoutSeconds** (*in query*): integer
346364
-->
@@ -761,6 +779,15 @@ DELETE /api/v1/namespaces/{namespace}/podtemplates
761779

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

782+
<!--
783+
- **sendInitialEvents** (*in query*): boolean
784+
785+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
786+
-->
787+
- **sendInitialEvents** (**查询参数**): boolean
788+
789+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
790+
764791
<!--
765792
- **timeoutSeconds** (*in query*): integer
766793
-->

content/zh-cn/docs/reference/kubernetes-api/workload-resources/priority-class-v1.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ PriorityClass 定义了从优先级类名到优先级数值的映射。
6565
<!--
6666
- **value** (int32), required
6767
68-
The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
68+
value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
6969
-->
7070
- **value** (int32),必需
7171

72-
此优先级的值。这是 Pod 在其 Pod 规约中有此类名称时收到的实际优先级。
72+
value 表示此优先级的整数值。这是 Pod 在其 Pod 规约中有此类名称时收到的实际优先级。
7373

7474
<!--
7575
- **description** (string)
@@ -95,7 +95,7 @@ PriorityClass 定义了从优先级类名到优先级数值的映射。
9595
<!--
9696
- **preemptionPolicy** (string)
9797
98-
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
98+
preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
9999
-->
100100
- **preemptionPolicy** (string)
101101

@@ -294,6 +294,15 @@ GET /apis/scheduling.k8s.io/v1/priorityclasses
294294

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

297+
<!--
298+
- **sendInitialEvents** (*in query*): boolean
299+
300+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
301+
-->
302+
- **sendInitialEvents** (**查询参数**): boolean
303+
304+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
305+
297306
<!--
298307
- **timeoutSeconds** (*in query*): integer
299308
@@ -787,6 +796,15 @@ DELETE /apis/scheduling.k8s.io/v1/priorityclasses
787796

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

799+
<!--
800+
- **sendInitialEvents** (*in query*): boolean
801+
802+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
803+
-->
804+
- **sendInitialEvents** (**查询参数**): boolean
805+
806+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
807+
790808
<!--
791809
- **timeoutSeconds** (*in query*): integer
792810

content/zh-cn/docs/reference/kubernetes-api/workload-resources/stateful-set-v1.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,15 @@ StatefulSetSpec 是 StatefulSet 的规约。
101101
<!--
102102
- **template** (<a href="{{< ref "../workload-resources/pod-template-v1#PodTemplateSpec" >}}">PodTemplateSpec</a>), required
103103
104-
template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format \<statefulsetname>-\<podindex>. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3".
104+
template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format \<statefulsetname>-\<podindex>. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always".
105105
-->
106106
- **template** (<a href="{{< ref "../workload-resources/pod-template-v1#PodTemplateSpec" >}}">PodTemplateSpec</a>), 必需
107107

108108
template 是用来描述 Pod 的对象,检测到副本不足时将创建所描述的 Pod。
109109
经由 StatefulSet 创建的每个 Pod 都将满足这个模板,但与 StatefulSet 的其余 Pod 相比,每个 Pod 具有唯一的标识。
110110
每个 Pod 将以 \<statefulsetname>-\<podindex> 格式命名。
111111
例如,名为 "web" 且索引号为 "3" 的 StatefulSet 中的 Pod 将被命名为 "web-3"。
112+
`template.spec.restartPolicy` 唯一被允许的值是 `Always`
112113

113114
<!--
114115
- **replicas** (int32)
@@ -273,11 +274,11 @@ StatefulSetSpec 是 StatefulSet 的规约。
273274
- **ordinals** (StatefulSetOrdinals)
274275

275276
<!--
276-
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is alpha.
277+
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta.
277278
-->
278279
ordinals 控制 StatefulSet 中副本索引的编号。
279280
默认序数行为是将索引 "0" 设置给第一个副本,对于每个额外请求的副本,该索引加一。
280-
使用 ordinals 字段需要启用 Alpha 级别的 StatefulSetStartOrdinal 特性门控。
281+
使用 ordinals 字段需要启用 Beta 级别的 StatefulSetStartOrdinal 特性门控。
281282

282283
<!--
283284
<a name="StatefulSetOrdinals"></a>
@@ -681,6 +682,15 @@ GET /apis/apps/v1/namespaces/{namespace}/statefulsets
681682

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

685+
<!--
686+
- **sendInitialEvents** (*in query*): boolean
687+
688+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
689+
-->
690+
- **sendInitialEvents** (**查询参数**): boolean
691+
692+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
693+
684694
<!--
685695
- **timeoutSeconds** (*in query*): integer
686696
@@ -794,6 +804,15 @@ GET /apis/apps/v1/statefulsets
794804

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

807+
<!--
808+
- **sendInitialEvents** (*in query*): boolean
809+
810+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
811+
-->
812+
- **sendInitialEvents** (**查询参数**): boolean
813+
814+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
815+
797816
<!--
798817
- **timeoutSeconds** (*in query*): integer
799818
@@ -1448,6 +1467,15 @@ DELETE /apis/apps/v1/namespaces/{namespace}/statefulsets
14481467

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

1470+
<!--
1471+
- **sendInitialEvents** (*in query*): boolean
1472+
1473+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
1474+
-->
1475+
- **sendInitialEvents** (**查询参数**): boolean
1476+
1477+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
1478+
14511479
<!--
14521480
- **timeoutSeconds** (*in query*): integer
14531481

0 commit comments

Comments
 (0)