Skip to content

Commit 0009fed

Browse files
authored
Merge pull request #52362 from my-git9/npa-26972
[zh-cn]sync kubectl_create_token.md
2 parents 5e1309c + 3975a92 commit 0009fed

File tree

1 file changed

+61
-48
lines changed

1 file changed

+61
-48
lines changed

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

Lines changed: 61 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ kubectl create token myapp --bound-object-kind Secret --bound-object-name mysecr
6666

6767
## {{% heading "options" %}}
6868

69-
<table style="width: 100%; table-layout: fixed;">
69+
<table style="width: 100%; table-layout: fixed;">
7070
<colgroup>
7171
<col span="1" style="width: 10px;" />
7272
<col span="1" />
@@ -77,7 +77,8 @@ kubectl create token myapp --bound-object-kind Secret --bound-object-name mysecr
7777
<td colspan="2">--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:true</td>
7878
</tr>
7979
<tr>
80-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
80+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
81+
<p>
8182
<!--
8283
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
8384
-->
@@ -90,7 +91,8 @@ If true, ignore any errors in templates when a field or map key is missing in th
9091
<td colspan="2">--audience strings</td>
9192
</tr>
9293
<tr>
93-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
94+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
95+
<p>
9496
<!--
9597
Audience of the requested token. If unset, defaults to requesting a token for use with the Kubernetes API server. May be repeated to request a token valid for multiple audiences.
9698
-->
@@ -103,7 +105,8 @@ Audience of the requested token. If unset, defaults to requesting a token for us
103105
<td colspan="2">--bound-object-kind string</td>
104106
</tr>
105107
<tr>
106-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
108+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
109+
<p>
107110
<!--
108111
Kind of an object to bind the token to. Supported kinds are Node, Pod, Secret. If set, --bound-object-name must be provided.
109112
-->
@@ -116,7 +119,8 @@ Kind of an object to bind the token to. Supported kinds are Node, Pod, Secret. I
116119
<td colspan="2">--bound-object-name string</td>
117120
</tr>
118121
<tr>
119-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
122+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
123+
<p>
120124
<!--
121125
Name of an object to bind the token to. The token will expire when the object is deleted. Requires --bound-object-kind.
122126
-->
@@ -128,7 +132,8 @@ Name of an object to bind the token to. The token will expire when the object is
128132
<td colspan="2">--bound-object-uid string</td>
129133
</tr>
130134
<tr>
131-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
135+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
136+
<p>
132137
<!--
133138
UID of an object to bind the token to. Requires --bound-object-kind and --bound-object-name. If unset, the UID of the existing object is used.
134139
-->
@@ -141,7 +146,8 @@ UID of an object to bind the token to. Requires --bound-object-kind and --bound-
141146
<td colspan="2">--duration duration</td>
142147
</tr>
143148
<tr>
144-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
149+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
150+
<p>
145151
<!--
146152
Requested lifetime of the issued token. If not set or if set to 0, the lifetime will be determined by the server automatically. The server may return a token with a longer or shorter lifetime.
147153
-->
@@ -154,7 +160,8 @@ Requested lifetime of the issued token. If not set or if set to 0, the lifetime
154160
<td colspan="2">-h, --help</td>
155161
</tr>
156162
<tr>
157-
<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>
158165
<!--
159166
help for token
160167
-->
@@ -166,7 +173,8 @@ token 操作的帮助命令。
166173
<td colspan="2">-o, --output string</td>
167174
</tr>
168175
<tr>
169-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
176+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
177+
<p>
170178
<!--
171179
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
172180
-->
@@ -179,7 +187,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
179187
<td colspan="2">--show-managed-fields</td>
180188
</tr>
181189
<tr>
182-
<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>
183192
<!--
184193
If true, keep the managedFields when printing objects in JSON or YAML format.
185194
-->
@@ -191,7 +200,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
191200
<td colspan="2">--template string</td>
192201
</tr>
193202
<tr>
194-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
203+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
204+
<p>
195205
<!--
196206
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].
197207
-->
@@ -205,7 +215,7 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
205215

206216
## {{% heading "parentoptions" %}}
207217

208-
<table style="width: 100%; table-layout: fixed;">
218+
<table style="width: 100%; table-layout: fixed;">
209219
<colgroup>
210220
<col span="1" style="width: 10px;" />
211221
<col span="1" />
@@ -216,7 +226,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
216226
<td colspan="2">--as string</td>
217227
</tr>
218228
<tr>
219-
<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>
220231
<!--
221232
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
222233
-->
@@ -228,7 +239,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
228239
<td colspan="2">--as-group strings</td>
229240
</tr>
230241
<tr>
231-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
242+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
243+
<p>
232244
<!--
233245
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
234246
-->
@@ -240,7 +252,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
240252
<td colspan="2">--as-uid string</td>
241253
</tr>
242254
<tr>
243-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
255+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
256+
<p>
244257
<!--
245258
UID to impersonate for the operation.
246259
-->
@@ -252,7 +265,8 @@ UID to impersonate for the operation.
252265
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
253266
</tr>
254267
<tr>
255-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
268+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
269+
<p>
256270
<!--
257271
Default cache directory
258272
-->
@@ -264,7 +278,8 @@ Default cache directory
264278
<td colspan="2">--certificate-authority string</td>
265279
</tr>
266280
<tr>
267-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
281+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
282+
<p>
268283
<!--
269284
Path to a cert file for the certificate authority
270285
-->
@@ -276,7 +291,8 @@ Path to a cert file for the certificate authority
276291
<td colspan="2">--client-certificate string</td>
277292
</tr>
278293
<tr>
279-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
294+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
295+
<p>
280296
<!--
281297
Path to a client certificate file for TLS
282298
-->
@@ -288,7 +304,8 @@ TLS 客户端证书文件的路径。
288304
<td colspan="2">--client-key string</td>
289305
</tr>
290306
<tr>
291-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
307+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
308+
<p>
292309
<!--
293310
Path to a client key file for TLS
294311
-->
@@ -300,7 +317,8 @@ TLS 客户端密钥文件的路径。
300317
<td colspan="2">--cluster string</td>
301318
</tr>
302319
<tr>
303-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
320+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
321+
<p>
304322
<!--
305323
The name of the kubeconfig cluster to use
306324
-->
@@ -312,43 +330,21 @@ The name of the kubeconfig cluster to use
312330
<td colspan="2">--context string</td>
313331
</tr>
314332
<tr>
315-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
333+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
334+
<p>
316335
<!--
317336
The name of the kubeconfig context to use
318337
-->
319338
要使用的 kubeconfig 上下文的名称。
320339
</p></td>
321340
</tr>
322341

323-
<tr>
324-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
325-
</tr>
326-
<tr>
327-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
328-
<!--
329-
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.
330-
-->
331-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
332-
</p></td>
333-
</tr>
334-
335-
<tr>
336-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
337-
</tr>
338-
<tr>
339-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
340-
<!--
341-
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.
342-
-->
343-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
344-
</p></td>
345-
</tr>
346-
347342
<tr>
348343
<td colspan="2">--disable-compression</td>
349344
</tr>
350345
<tr>
351-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
346+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
347+
<p>
352348
<!--
353349
If true, opt-out of response compression for all requests to the server
354350
-->
@@ -372,19 +368,36 @@ If true, the server's certificate will not be checked for validity. This will ma
372368
<td colspan="2">--kubeconfig string</td>
373369
</tr>
374370
<tr>
375-
<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>
376373
<!--
377374
Path to the kubeconfig file to use for CLI requests.
378375
-->
379376
CLI 请求要使用的 kubeconfig 文件的路径。
380377
</p></td>
381378
</tr>
382379

380+
<tr>
381+
<td colspan="2">--kuberc string</td>
382+
</tr>
383+
<tr>
384+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
385+
<p>
386+
<!--
387+
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.
388+
-->
389+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
390+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
391+
</p>
392+
</td>
393+
</tr>
394+
383395
<tr>
384396
<td colspan="2">--match-server-version</td>
385397
</tr>
386398
<tr>
387-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
399+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
400+
<p>
388401
<!--
389402
Require server version to match client version
390403
-->

0 commit comments

Comments
 (0)