Skip to content

Commit e50e6b9

Browse files
authored
Merge pull request #52400 from my-git9/npa-32521
[zh-cn]sync kubectl_create_clusterrole.md
2 parents fec32fa + bda218d commit e50e6b9

File tree

1 file changed

+62
-48
lines changed

1 file changed

+62
-48
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_create/kubectl_create_clusterrole.md

Lines changed: 62 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ Name of the manager used to track field ownership.
131131
<td colspan="2">-h, --help</td>
132132
</tr>
133133
<tr>
134-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
134+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
135+
<p>
135136
<!--
136137
help for clusterrole
137138
-->
@@ -143,7 +144,8 @@ clusterrole 操作的帮助命令。
143144
<td colspan="2">--non-resource-url strings</td>
144145
</tr>
145146
<tr>
146-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
147+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
148+
<p>
147149
<!--
148150
A partial url that user should have access to.
149151
-->
@@ -155,7 +157,8 @@ A partial url that user should have access to.
155157
<td colspan="2">-o, --output string</td>
156158
</tr>
157159
<tr>
158-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
160+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
161+
<p>
159162
<!--
160163
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
161164
-->
@@ -168,7 +171,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
168171
<td colspan="2">--resource strings</td>
169172
</tr>
170173
<tr>
171-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
174+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
175+
<p>
172176
<!--
173177
Resource that the rule applies to
174178
-->
@@ -180,7 +184,8 @@ Resource that the rule applies to
180184
<td colspan="2">--resource-name strings</td>
181185
</tr>
182186
<tr>
183-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
187+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
188+
<p>
184189
<!--
185190
Resource in the white list that the rule applies to, repeat this flag for multiple items
186191
-->
@@ -192,7 +197,8 @@ Resource in the white list that the rule applies to, repeat this flag for multip
192197
<td colspan="2">--save-config</td>
193198
</tr>
194199
<tr>
195-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
200+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
201+
<p>
196202
<!--
197203
If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.
198204
-->
@@ -205,7 +211,8 @@ If true, the configuration of current object will be saved in its annotation. Ot
205211
<td colspan="2">--show-managed-fields</td>
206212
</tr>
207213
<tr>
208-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
214+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
215+
<p>
209216
<!--
210217
If true, keep the managedFields when printing objects in JSON or YAML format.
211218
-->
@@ -217,7 +224,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
217224
<td colspan="2">--template string</td>
218225
</tr>
219226
<tr>
220-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
227+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
228+
<p>
221229
<!--
222230
Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
223231
-->
@@ -230,7 +238,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
230238
<td colspan="2">--validate string[="strict"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strict"</td>
231239
</tr>
232240
<tr>
233-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
241+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
242+
<p>
234243
<!--
235244
Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &quot;strict&quot; will
236245
use a schema to validate the input and fail the request if invalid. It will perform server side validation
@@ -254,7 +263,8 @@ unknown or duplicate fields.
254263
<td colspan="2">--verb strings</td>
255264
</tr>
256265
<tr>
257-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
266+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
267+
<p>
258268
<!--
259269
Verb that applies to the resources contained in the rule
260270
-->
@@ -267,7 +277,7 @@ Verb that applies to the resources contained in the rule
267277

268278
## {{% heading "parentoptions" %}}
269279

270-
<table style="width: 100%; table-layout: fixed;">
280+
<table style="width: 100%; table-layout: fixed;">
271281
<colgroup>
272282
<col span="1" style="width: 10px;" />
273283
<col span="1" />
@@ -278,7 +288,8 @@ Verb that applies to the resources contained in the rule
278288
<td colspan="2">--as string</td>
279289
</tr>
280290
<tr>
281-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
291+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
292+
<p>
282293
<!--
283294
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
284295
-->
@@ -290,7 +301,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
290301
<td colspan="2">--as-group strings</td>
291302
</tr>
292303
<tr>
293-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
304+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
305+
<p>
294306
<!--
295307
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
296308
-->
@@ -302,7 +314,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
302314
<td colspan="2">--as-uid string</td>
303315
</tr>
304316
<tr>
305-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
317+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
318+
<p>
306319
<!--
307320
UID to impersonate for the operation.
308321
-->
@@ -314,7 +327,8 @@ UID to impersonate for the operation.
314327
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
315328
</tr>
316329
<tr>
317-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
330+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
331+
<p>
318332
<!--
319333
Default cache directory
320334
-->
@@ -326,7 +340,8 @@ Default cache directory
326340
<td colspan="2">--certificate-authority string</td>
327341
</tr>
328342
<tr>
329-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
343+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
344+
<p>
330345
<!--
331346
Path to a cert file for the certificate authority
332347
-->
@@ -338,7 +353,8 @@ Path to a cert file for the certificate authority
338353
<td colspan="2">--client-certificate string</td>
339354
</tr>
340355
<tr>
341-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
356+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
357+
<p>
342358
<!--
343359
Path to a client certificate file for TLS
344360
-->
@@ -350,7 +366,8 @@ TLS 客户端证书文件的路径。
350366
<td colspan="2">--client-key string</td>
351367
</tr>
352368
<tr>
353-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
369+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
370+
<p>
354371
<!--
355372
Path to a client key file for TLS
356373
-->
@@ -362,7 +379,8 @@ TLS 客户端密钥文件的路径。
362379
<td colspan="2">--cluster string</td>
363380
</tr>
364381
<tr>
365-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
382+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
383+
<p>
366384
<!--
367385
The name of the kubeconfig cluster to use
368386
-->
@@ -374,43 +392,21 @@ The name of the kubeconfig cluster to use
374392
<td colspan="2">--context string</td>
375393
</tr>
376394
<tr>
377-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
395+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
396+
<p>
378397
<!--
379398
The name of the kubeconfig context to use
380399
-->
381400
要使用的 kubeconfig 上下文的名称。
382401
</p></td>
383402
</tr>
384403

385-
<tr>
386-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
387-
</tr>
388-
<tr>
389-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
390-
<!--
391-
Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.
392-
-->
393-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
394-
</p></td>
395-
</tr>
396-
397-
<tr>
398-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
399-
</tr>
400-
<tr>
401-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
402-
<!--
403-
Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.
404-
-->
405-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
406-
</p></td>
407-
</tr>
408-
409404
<tr>
410405
<td colspan="2">--disable-compression</td>
411406
</tr>
412407
<tr>
413-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
408+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
409+
<p>
414410
<!--
415411
If true, opt-out of response compression for all requests to the server
416412
-->
@@ -422,7 +418,8 @@ If true, opt-out of response compression for all requests to the server
422418
<td colspan="2">--insecure-skip-tls-verify</td>
423419
</tr>
424420
<tr>
425-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
421+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
422+
<p>
426423
<!--
427424
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
428425
-->
@@ -434,19 +431,36 @@ If true, the server's certificate will not be checked for validity. This will ma
434431
<td colspan="2">--kubeconfig string</td>
435432
</tr>
436433
<tr>
437-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
434+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
435+
<p>
438436
<!--
439437
Path to the kubeconfig file to use for CLI requests.
440438
-->
441439
CLI 请求要使用的 kubeconfig 文件的路径。
442440
</p></td>
443441
</tr>
444442

443+
<tr>
444+
<td colspan="2">--kuberc string</td>
445+
</tr>
446+
<tr>
447+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
448+
<p>
449+
<!--
450+
Path to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.
451+
-->
452+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
453+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
454+
</p>
455+
</td>
456+
</tr>
457+
445458
<tr>
446459
<td colspan="2">--match-server-version</td>
447460
</tr>
448461
<tr>
449-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
462+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
463+
<p>
450464
<!--
451465
Require server version to match client version
452466
-->

0 commit comments

Comments
 (0)