@@ -74,7 +74,7 @@ kubectl create configmap NAME [--from-file=[key=]source] [--from-literal=key1=va
74
74
75
75
## {{% heading "options" %}}
76
76
77
- <table style =" width : 100% ; table-layout : fixed ;" >
77
+ <table style =" width : 100% ; table-layout : fixed ;" >
78
78
<colgroup >
79
79
<col span =" 1 " style =" width : 10px ;" />
80
80
<col span =" 1 " />
@@ -135,7 +135,8 @@ Name of the manager used to track field ownership.
135
135
<td colspan =" 2 " >--from-env-file strings</td >
136
136
</tr >
137
137
<tr >
138
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
138
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
139
+ <p >
139
140
<!--
140
141
Specify the path to a file to read lines of key=val pairs to create a configmap.
141
142
-->
@@ -147,7 +148,8 @@ Specify the path to a file to read lines of key=val pairs to create a configmap.
147
148
<td colspan =" 2 " >--from-file strings</td >
148
149
</tr >
149
150
<tr >
150
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
151
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
152
+ <p >
151
153
<!--
152
154
Key file can be specified using its file path, in which case file basename will be used as configmap key, or optionally with a key and file path, in which case the given key will be used. Specifying a directory will iterate each named file in the directory whose basename is a valid configmap key.
153
155
-->
@@ -161,7 +163,8 @@ Key file can be specified using its file path, in which case file basename will
161
163
<td colspan =" 2 " >--from-literal strings</td >
162
164
</tr >
163
165
<tr >
164
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
166
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
167
+ <p >
165
168
<!--
166
169
Specify a key and literal value to insert in configmap (i.e. mykey=somevalue)
167
170
-->
@@ -173,7 +176,8 @@ Specify a key and literal value to insert in configmap (i.e. mykey=somevalue)
173
176
<td colspan =" 2 " >-h, --help</td >
174
177
</tr >
175
178
<tr >
176
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
179
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
180
+ <p >
177
181
<!--
178
182
help for configmap
179
183
-->
@@ -185,7 +189,8 @@ configmap 操作的帮助命令。
185
189
<td colspan =" 2 " >-o, --output string</td >
186
190
</tr >
187
191
<tr >
188
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
192
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
193
+ <p >
189
194
<!--
190
195
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
191
196
-->
@@ -198,7 +203,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
198
203
<td colspan =" 2 " >--save-config</td >
199
204
</tr >
200
205
<tr >
201
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
206
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
207
+ <p >
202
208
<!--
203
209
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.
204
210
-->
@@ -211,7 +217,8 @@ If true, the configuration of current object will be saved in its annotation. Ot
211
217
<td colspan =" 2 " >--show-managed-fields</td >
212
218
</tr >
213
219
<tr >
214
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
220
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
221
+ <p >
215
222
<!--
216
223
If true, keep the managedFields when printing objects in JSON or YAML format.
217
224
-->
@@ -223,7 +230,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
223
230
<td colspan =" 2 " >--template string</td >
224
231
</tr >
225
232
<tr >
226
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
233
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
234
+ <p >
227
235
<!--
228
236
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].
229
237
-->
@@ -236,7 +244,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
236
244
<td colspan =" 2 " >--validate string[="strict"]  ;  ;  ;  ;  ; <!-- Default:--> 默认值:"strict"</td >
237
245
</tr >
238
246
<tr >
239
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
247
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
248
+ <p >
240
249
<!--
241
250
Must be one of: strict (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.
242
251
-->
@@ -255,7 +264,7 @@ Must be one of: strict (or true), warn, ignore (or false). "true" or &
255
264
256
265
## {{% heading "parentoptions" %}}
257
266
258
- <table style =" width : 100% ; table-layout : fixed ;" >
267
+ <table style =" width : 100% ; table-layout : fixed ;" >
259
268
<colgroup >
260
269
<col span =" 1 " style =" width : 10px ;" />
261
270
<col span =" 1 " />
@@ -266,7 +275,8 @@ Must be one of: strict (or true), warn, ignore (or false). "true" or &
266
275
<td colspan =" 2 " >--as string</td >
267
276
</tr >
268
277
<tr >
269
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
278
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
279
+ <p >
270
280
<!--
271
281
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
272
282
-->
@@ -278,7 +288,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
278
288
<td colspan =" 2 " >--as-group strings</td >
279
289
</tr >
280
290
<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 >
282
293
<!--
283
294
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
284
295
-->
@@ -290,7 +301,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
290
301
<td colspan =" 2 " >--as-uid string</td >
291
302
</tr >
292
303
<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 >
294
306
<!--
295
307
UID to impersonate for the operation.
296
308
-->
@@ -302,7 +314,8 @@ UID to impersonate for the operation.
302
314
<td colspan =" 2 " >--cache-dir string  ;  ;  ;  ;  ; <!-- Default:--> 默认值:"$HOME/.kube/cache"</td >
303
315
</tr >
304
316
<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 >
306
319
<!--
307
320
Default cache directory
308
321
-->
@@ -314,7 +327,8 @@ Default cache directory
314
327
<td colspan =" 2 " >--certificate-authority string</td >
315
328
</tr >
316
329
<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 >
318
332
<!--
319
333
Path to a cert file for the certificate authority
320
334
-->
@@ -326,7 +340,8 @@ Path to a cert file for the certificate authority
326
340
<td colspan =" 2 " >--client-certificate string</td >
327
341
</tr >
328
342
<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 >
330
345
<!--
331
346
Path to a client certificate file for TLS
332
347
-->
@@ -338,7 +353,8 @@ TLS 客户端证书文件的路径。
338
353
<td colspan =" 2 " >--client-key string</td >
339
354
</tr >
340
355
<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 >
342
358
<!--
343
359
Path to a client key file for TLS
344
360
-->
@@ -350,7 +366,8 @@ TLS 客户端密钥文件的路径。
350
366
<td colspan =" 2 " >--cluster string</td >
351
367
</tr >
352
368
<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 >
354
371
<!--
355
372
The name of the kubeconfig cluster to use
356
373
-->
@@ -362,43 +379,21 @@ The name of the kubeconfig cluster to use
362
379
<td colspan =" 2 " >--context string</td >
363
380
</tr >
364
381
<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 >
366
384
<!--
367
385
The name of the kubeconfig context to use
368
386
-->
369
387
要使用的 kubeconfig 上下文的名称。
370
388
</p ></td >
371
389
</tr >
372
390
373
- <tr >
374
- <td colspan =" 2 " >--default-not-ready-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default:--> 默认值:300</td >
375
- </tr >
376
- <tr >
377
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
378
- <!--
379
- 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.
380
- -->
381
- 设置针对 notReady: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
382
- </p ></td >
383
- </tr >
384
-
385
- <tr >
386
- <td colspan =" 2 " >--default-unreachable-toleration-seconds int  ;  ;  ;  ;  ; <!-- 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 unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.
392
- -->
393
- 设置针对 unreachable: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
394
- </p ></td >
395
- </tr >
396
-
397
391
<tr >
398
392
<td colspan =" 2 " >--disable-compression</td >
399
393
</tr >
400
394
<tr >
401
- <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 >
402
397
<!--
403
398
If true, opt-out of response compression for all requests to the server
404
399
-->
@@ -410,7 +405,8 @@ If true, opt-out of response compression for all requests to the server
410
405
<td colspan =" 2 " >--insecure-skip-tls-verify</td >
411
406
</tr >
412
407
<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 >
414
410
<!--
415
411
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
416
412
-->
@@ -422,19 +418,36 @@ If true, the server's certificate will not be checked for validity. This will ma
422
418
<td colspan =" 2 " >--kubeconfig string</td >
423
419
</tr >
424
420
<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 >
426
423
<!--
427
424
Path to the kubeconfig file to use for CLI requests.
428
425
-->
429
426
CLI 请求要使用的 kubeconfig 文件的路径。
430
427
</p ></td >
431
428
</tr >
432
429
430
+ <tr >
431
+ <td colspan =" 2 " >--kuberc string</td >
432
+ </tr >
433
+ <tr >
434
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
435
+ <p >
436
+ <!--
437
+ 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.
438
+ -->
439
+ 用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
440
+ 特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
441
+ </p >
442
+ </td >
443
+ </tr >
444
+
433
445
<tr >
434
446
<td colspan =" 2 " >--match-server-version</td >
435
447
</tr >
436
448
<tr >
437
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
449
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
450
+ <p >
438
451
<!--
439
452
Require server version to match client version
440
453
-->
0 commit comments