Skip to content

Commit eef5ded

Browse files
committed
[zh-cn]sync kubectl_create_role.md
Signed-off-by: xin.li <[email protected]>
1 parent c75d9b3 commit eef5ded

File tree

1 file changed

+59
-46
lines changed

1 file changed

+59
-46
lines changed

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

Lines changed: 59 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ Name of the manager used to track field ownership.
107107
<td colspan="2">-h, --help</td>
108108
</tr>
109109
<tr>
110-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
110+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
111+
<p>
111112
<!--
112113
help for role
113114
-->
@@ -119,7 +120,8 @@ role 操作的帮助命令。
119120
<td colspan="2">-o, --output string</td>
120121
</tr>
121122
<tr>
122-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
123+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
124+
<p>
123125
<!--
124126
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
125127
-->
@@ -132,7 +134,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
132134
<td colspan="2">--resource strings</td>
133135
</tr>
134136
<tr>
135-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
137+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
138+
<p>
136139
<!--
137140
Resource that the rule applies to
138141
-->
@@ -144,7 +147,8 @@ Resource that the rule applies to
144147
<td colspan="2">--resource-name strings</td>
145148
</tr>
146149
<tr>
147-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
150+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
151+
<p>
148152
<!--
149153
Resource in the white list that the rule applies to, repeat this flag for multiple items
150154
-->
@@ -156,7 +160,8 @@ Resource in the white list that the rule applies to, repeat this flag for multip
156160
<td colspan="2">--save-config</td>
157161
</tr>
158162
<tr>
159-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
163+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
164+
<p>
160165
<!--
161166
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.
162167
-->
@@ -169,7 +174,8 @@ If true, the configuration of current object will be saved in its annotation. Ot
169174
<td colspan="2">--show-managed-fields</td>
170175
</tr>
171176
<tr>
172-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
177+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
178+
<p>
173179
<!--
174180
If true, keep the managedFields when printing objects in JSON or YAML format.
175181
-->
@@ -181,7 +187,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
181187
<td colspan="2">--template string</td>
182188
</tr>
183189
<tr>
184-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
190+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
191+
<p>
185192
<!--
186193
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].
187194
-->
@@ -194,7 +201,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
194201
<td colspan="2">--validate string[="strict"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strict"</td>
195202
</tr>
196203
<tr>
197-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
204+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
205+
<p>
198206
<!--
199207
Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &quot;strict&quot; will
200208
use a schema to validate the input and fail the request if invalid. It will perform server side validation
@@ -218,7 +226,8 @@ unknown or duplicate fields.
218226
<td colspan="2">--verb strings</td>
219227
</tr>
220228
<tr>
221-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
229+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
230+
<p>
222231
<!--
223232
Verb that applies to the resources contained in the rule
224233
-->
@@ -242,7 +251,8 @@ Verb that applies to the resources contained in the rule
242251
<td colspan="2">--as string</td>
243252
</tr>
244253
<tr>
245-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
254+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
255+
<p>
246256
<!--
247257
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
248258
-->
@@ -254,7 +264,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
254264
<td colspan="2">--as-group strings</td>
255265
</tr>
256266
<tr>
257-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
267+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
268+
<p>
258269
<!--
259270
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
260271
-->
@@ -266,7 +277,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
266277
<td colspan="2">--as-uid string</td>
267278
</tr>
268279
<tr>
269-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
280+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
281+
<p>
270282
<!--
271283
UID to impersonate for the operation.
272284
-->
@@ -278,7 +290,8 @@ UID to impersonate for the operation.
278290
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
279291
</tr>
280292
<tr>
281-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
293+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
294+
<p>
282295
<!--
283296
Default cache directory
284297
-->
@@ -290,7 +303,8 @@ Default cache directory
290303
<td colspan="2">--certificate-authority string</td>
291304
</tr>
292305
<tr>
293-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
306+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
307+
<p>
294308
<!--
295309
Path to a cert file for the certificate authority
296310
-->
@@ -302,7 +316,8 @@ Path to a cert file for the certificate authority
302316
<td colspan="2">--client-certificate string</td>
303317
</tr>
304318
<tr>
305-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
319+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
320+
<p>
306321
<!--
307322
Path to a client certificate file for TLS
308323
-->
@@ -314,7 +329,8 @@ TLS 客户端证书文件的路径。
314329
<td colspan="2">--client-key string</td>
315330
</tr>
316331
<tr>
317-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
332+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
333+
<p>
318334
<!--
319335
Path to a client key file for TLS
320336
-->
@@ -326,7 +342,8 @@ TLS 客户端密钥文件的路径。
326342
<td colspan="2">--cluster string</td>
327343
</tr>
328344
<tr>
329-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
345+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
346+
<p>
330347
<!--
331348
The name of the kubeconfig cluster to use
332349
-->
@@ -338,43 +355,21 @@ The name of the kubeconfig cluster to use
338355
<td colspan="2">--context string</td>
339356
</tr>
340357
<tr>
341-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
358+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
359+
<p>
342360
<!--
343361
The name of the kubeconfig context to use
344362
-->
345363
要使用的 kubeconfig 上下文的名称。
346364
</p></td>
347365
</tr>
348366

349-
<tr>
350-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
351-
</tr>
352-
<tr>
353-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
354-
<!--
355-
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.
356-
-->
357-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
358-
</p></td>
359-
</tr>
360-
361-
<tr>
362-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
363-
</tr>
364-
<tr>
365-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
366-
<!--
367-
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.
368-
-->
369-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
370-
</p></td>
371-
</tr>
372-
373367
<tr>
374368
<td colspan="2">--disable-compression</td>
375369
</tr>
376370
<tr>
377-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
371+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
372+
<p>
378373
<!--
379374
If true, opt-out of response compression for all requests to the server
380375
-->
@@ -386,7 +381,8 @@ If true, opt-out of response compression for all requests to the server
386381
<td colspan="2">--insecure-skip-tls-verify</td>
387382
</tr>
388383
<tr>
389-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
384+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
385+
<p>
390386
<!--
391387
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
392388
-->
@@ -398,19 +394,36 @@ If true, the server's certificate will not be checked for validity. This will ma
398394
<td colspan="2">--kubeconfig string</td>
399395
</tr>
400396
<tr>
401-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
397+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
398+
<p>
402399
<!--
403400
Path to the kubeconfig file to use for CLI requests.
404401
-->
405402
CLI 请求要使用的 kubeconfig 文件的路径。
406403
</p></td>
407404
</tr>
408405

406+
<tr>
407+
<td colspan="2">--kuberc string</td>
408+
</tr>
409+
<tr>
410+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
411+
<p>
412+
<!--
413+
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.
414+
-->
415+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
416+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
417+
</p>
418+
</td>
419+
</tr>
420+
409421
<tr>
410422
<td colspan="2">--match-server-version</td>
411423
</tr>
412424
<tr>
413-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
425+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
426+
<p>
414427
<!--
415428
Require server version to match client version
416429
-->

0 commit comments

Comments
 (0)