@@ -66,7 +66,7 @@ kubectl create token myapp --bound-object-kind Secret --bound-object-name mysecr
66
66
67
67
## {{% heading "options" %}}
68
68
69
- <table style =" width : 100% ; table-layout : fixed ;" >
69
+ <table style =" width : 100% ; table-layout : fixed ;" >
70
70
<colgroup >
71
71
<col span =" 1 " style =" width : 10px ;" />
72
72
<col span =" 1 " />
@@ -77,7 +77,8 @@ kubectl create token myapp --bound-object-kind Secret --bound-object-name mysecr
77
77
<td colspan =" 2 " >--allow-missing-template-keys  ;  ;  ;  ;  ; <!-- Default:--> 默认值:true</td >
78
78
</tr >
79
79
<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 >
81
82
<!--
82
83
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.
83
84
-->
@@ -90,7 +91,8 @@ If true, ignore any errors in templates when a field or map key is missing in th
90
91
<td colspan =" 2 " >--audience strings</td >
91
92
</tr >
92
93
<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 >
94
96
<!--
95
97
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.
96
98
-->
@@ -103,7 +105,8 @@ Audience of the requested token. If unset, defaults to requesting a token for us
103
105
<td colspan =" 2 " >--bound-object-kind string</td >
104
106
</tr >
105
107
<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 >
107
110
<!--
108
111
Kind of an object to bind the token to. Supported kinds are Node, Pod, Secret. If set, --bound-object-name must be provided.
109
112
-->
@@ -116,7 +119,8 @@ Kind of an object to bind the token to. Supported kinds are Node, Pod, Secret. I
116
119
<td colspan =" 2 " >--bound-object-name string</td >
117
120
</tr >
118
121
<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 >
120
124
<!--
121
125
Name of an object to bind the token to. The token will expire when the object is deleted. Requires --bound-object-kind.
122
126
-->
@@ -128,7 +132,8 @@ Name of an object to bind the token to. The token will expire when the object is
128
132
<td colspan =" 2 " >--bound-object-uid string</td >
129
133
</tr >
130
134
<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 >
132
137
<!--
133
138
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.
134
139
-->
@@ -141,7 +146,8 @@ UID of an object to bind the token to. Requires --bound-object-kind and --bound-
141
146
<td colspan =" 2 " >--duration duration</td >
142
147
</tr >
143
148
<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 >
145
151
<!--
146
152
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.
147
153
-->
@@ -154,7 +160,8 @@ Requested lifetime of the issued token. If not set or if set to 0, the lifetime
154
160
<td colspan =" 2 " >-h, --help</td >
155
161
</tr >
156
162
<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 >
158
165
<!--
159
166
help for token
160
167
-->
@@ -166,7 +173,8 @@ token 操作的帮助命令。
166
173
<td colspan =" 2 " >-o, --output string</td >
167
174
</tr >
168
175
<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 >
170
178
<!--
171
179
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
172
180
-->
@@ -179,7 +187,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
179
187
<td colspan =" 2 " >--show-managed-fields</td >
180
188
</tr >
181
189
<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 >
183
192
<!--
184
193
If true, keep the managedFields when printing objects in JSON or YAML format.
185
194
-->
@@ -191,7 +200,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
191
200
<td colspan =" 2 " >--template string</td >
192
201
</tr >
193
202
<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 >
195
205
<!--
196
206
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].
197
207
-->
@@ -205,7 +215,7 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
205
215
206
216
## {{% heading "parentoptions" %}}
207
217
208
- <table style =" width : 100% ; table-layout : fixed ;" >
218
+ <table style =" width : 100% ; table-layout : fixed ;" >
209
219
<colgroup >
210
220
<col span =" 1 " style =" width : 10px ;" />
211
221
<col span =" 1 " />
@@ -216,7 +226,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
216
226
<td colspan =" 2 " >--as string</td >
217
227
</tr >
218
228
<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 >
220
231
<!--
221
232
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
222
233
-->
@@ -228,7 +239,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
228
239
<td colspan =" 2 " >--as-group strings</td >
229
240
</tr >
230
241
<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 >
232
244
<!--
233
245
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
234
246
-->
@@ -240,7 +252,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
240
252
<td colspan =" 2 " >--as-uid string</td >
241
253
</tr >
242
254
<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 >
244
257
<!--
245
258
UID to impersonate for the operation.
246
259
-->
@@ -252,7 +265,8 @@ UID to impersonate for the operation.
252
265
<td colspan =" 2 " >--cache-dir string  ;  ;  ;  ;  ; <!-- Default:--> 默认值:"$HOME/.kube/cache"</td >
253
266
</tr >
254
267
<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 >
256
270
<!--
257
271
Default cache directory
258
272
-->
@@ -264,7 +278,8 @@ Default cache directory
264
278
<td colspan =" 2 " >--certificate-authority string</td >
265
279
</tr >
266
280
<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 >
268
283
<!--
269
284
Path to a cert file for the certificate authority
270
285
-->
@@ -276,7 +291,8 @@ Path to a cert file for the certificate authority
276
291
<td colspan =" 2 " >--client-certificate string</td >
277
292
</tr >
278
293
<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 >
280
296
<!--
281
297
Path to a client certificate file for TLS
282
298
-->
@@ -288,7 +304,8 @@ TLS 客户端证书文件的路径。
288
304
<td colspan =" 2 " >--client-key string</td >
289
305
</tr >
290
306
<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 >
292
309
<!--
293
310
Path to a client key file for TLS
294
311
-->
@@ -300,7 +317,8 @@ TLS 客户端密钥文件的路径。
300
317
<td colspan =" 2 " >--cluster string</td >
301
318
</tr >
302
319
<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 >
304
322
<!--
305
323
The name of the kubeconfig cluster to use
306
324
-->
@@ -312,43 +330,21 @@ The name of the kubeconfig cluster to use
312
330
<td colspan =" 2 " >--context string</td >
313
331
</tr >
314
332
<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 >
316
335
<!--
317
336
The name of the kubeconfig context to use
318
337
-->
319
338
要使用的 kubeconfig 上下文的名称。
320
339
</p ></td >
321
340
</tr >
322
341
323
- <tr >
324
- <td colspan =" 2 " >--default-not-ready-toleration-seconds int  ;  ;  ;  ;  ; <!-- 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  ;  ;  ;  ;  ; <!-- 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
-
347
342
<tr >
348
343
<td colspan =" 2 " >--disable-compression</td >
349
344
</tr >
350
345
<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 >
352
348
<!--
353
349
If true, opt-out of response compression for all requests to the server
354
350
-->
@@ -372,19 +368,36 @@ If true, the server's certificate will not be checked for validity. This will ma
372
368
<td colspan =" 2 " >--kubeconfig string</td >
373
369
</tr >
374
370
<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 >
376
373
<!--
377
374
Path to the kubeconfig file to use for CLI requests.
378
375
-->
379
376
CLI 请求要使用的 kubeconfig 文件的路径。
380
377
</p ></td >
381
378
</tr >
382
379
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
+
383
395
<tr >
384
396
<td colspan =" 2 " >--match-server-version</td >
385
397
</tr >
386
398
<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 >
388
401
<!--
389
402
Require server version to match client version
390
403
-->
0 commit comments