Skip to content

Commit e9722f1

Browse files
authored
Merge pull request #52379 from my-git9/npa-17940
[zh-cn]sync kubectl_create_secret_generic.md
2 parents 1a47f9c + a6e9ea3 commit e9722f1

File tree

1 file changed

+58
-46
lines changed

1 file changed

+58
-46
lines changed

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

Lines changed: 58 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ Specify the path to a file to read lines of key=val pairs to create a secret.
148148
<td colspan="2">--from-file strings</td>
149149
</tr>
150150
<tr>
151-
<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>
152153
<!--
153154
Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used. Specifying a directory will iterate each named file in the directory that is a valid secret key.
154155
-->
@@ -162,7 +163,8 @@ Key files can be specified using their file path, in which case a default name w
162163
<td colspan="2">--from-literal strings</td>
163164
</tr>
164165
<tr>
165-
<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>
166168
<!--
167169
Specify a key and literal value to insert in secret (i.e. mykey=somevalue)
168170
-->
@@ -174,7 +176,8 @@ Specify a key and literal value to insert in secret (i.e. mykey=somevalue)
174176
<td colspan="2">-h, --help</td>
175177
</tr>
176178
<tr>
177-
<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>
178181
<!--
179182
help for generic
180183
-->
@@ -186,7 +189,8 @@ generic 操作的帮助命令。
186189
<td colspan="2">-o, --output string</td>
187190
</tr>
188191
<tr>
189-
<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>
190194
<!--
191195
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
192196
-->
@@ -199,7 +203,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
199203
<td colspan="2">--save-config</td>
200204
</tr>
201205
<tr>
202-
<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>
203208
<!--
204209
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.
205210
-->
@@ -212,7 +217,8 @@ If true, the configuration of current object will be saved in its annotation. Ot
212217
<td colspan="2">--show-managed-fields</td>
213218
</tr>
214219
<tr>
215-
<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>
216222
<!--
217223
If true, keep the managedFields when printing objects in JSON or YAML format.
218224
-->
@@ -224,7 +230,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
224230
<td colspan="2">--template string</td>
225231
</tr>
226232
<tr>
227-
<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>
228235
<!--
229236
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].
230237
-->
@@ -237,7 +244,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
237244
<td colspan="2">--type string</td>
238245
</tr>
239246
<tr>
240-
<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>
241249
<!--
242250
The type of secret to create
243251
-->
@@ -249,7 +257,8 @@ The type of secret to create
249257
<td colspan="2">--validate string[="strict"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strict"</td>
250258
</tr>
251259
<tr>
252-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
260+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
261+
<p>
253262
<!--
254263
Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &quot;strict&quot; 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. &quot;warn&quot; 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 &quot;ignore&quot; otherwise. &quot;false&quot; or &quot;ignore&quot; will not perform any schema validation, silently dropping any unknown or duplicate fields.
255264
-->
@@ -268,7 +277,7 @@ Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &
268277

269278
## {{% heading "parentoptions" %}}
270279

271-
<table style="width: 100%; table-layout: fixed;">
280+
<table style="width: 100%; table-layout: fixed;">
272281
<colgroup>
273282
<col span="1" style="width: 10px;" />
274283
<col span="1" />
@@ -279,7 +288,8 @@ Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &
279288
<td colspan="2">--as string</td>
280289
</tr>
281290
<tr>
282-
<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>
283293
<!--
284294
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
285295
-->
@@ -291,7 +301,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
291301
<td colspan="2">--as-group strings</td>
292302
</tr>
293303
<tr>
294-
<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>
295306
<!--
296307
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
297308
-->
@@ -303,7 +314,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
303314
<td colspan="2">--as-uid string</td>
304315
</tr>
305316
<tr>
306-
<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>
307319
<!--
308320
UID to impersonate for the operation.
309321
-->
@@ -315,7 +327,8 @@ UID to impersonate for the operation.
315327
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
316328
</tr>
317329
<tr>
318-
<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>
319332
<!--
320333
Default cache directory
321334
-->
@@ -327,7 +340,8 @@ Default cache directory
327340
<td colspan="2">--certificate-authority string</td>
328341
</tr>
329342
<tr>
330-
<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>
331345
<!--
332346
Path to a cert file for the certificate authority
333347
-->
@@ -339,7 +353,8 @@ Path to a cert file for the certificate authority
339353
<td colspan="2">--client-certificate string</td>
340354
</tr>
341355
<tr>
342-
<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>
343358
<!--
344359
Path to a client certificate file for TLS
345360
-->
@@ -351,7 +366,8 @@ TLS 客户端证书文件的路径。
351366
<td colspan="2">--client-key string</td>
352367
</tr>
353368
<tr>
354-
<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>
355371
<!--
356372
Path to a client key file for TLS
357373
-->
@@ -363,7 +379,8 @@ TLS 客户端密钥文件的路径。
363379
<td colspan="2">--cluster string</td>
364380
</tr>
365381
<tr>
366-
<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>
367384
<!--
368385
The name of the kubeconfig cluster to use
369386
-->
@@ -375,43 +392,21 @@ The name of the kubeconfig cluster to use
375392
<td colspan="2">--context string</td>
376393
</tr>
377394
<tr>
378-
<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>
379397
<!--
380398
The name of the kubeconfig context to use
381399
-->
382400
要使用的 kubeconfig 上下文的名称。
383401
</p></td>
384402
</tr>
385403

386-
<tr>
387-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
388-
</tr>
389-
<tr>
390-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
391-
<!--
392-
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.
393-
-->
394-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
395-
</p></td>
396-
</tr>
397-
398-
<tr>
399-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
400-
</tr>
401-
<tr>
402-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
403-
<!--
404-
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.
405-
-->
406-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
407-
</p></td>
408-
</tr>
409-
410404
<tr>
411405
<td colspan="2">--disable-compression</td>
412406
</tr>
413407
<tr>
414-
<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>
415410
<!--
416411
If true, opt-out of response compression for all requests to the server
417412
-->
@@ -423,7 +418,8 @@ If true, opt-out of response compression for all requests to the server
423418
<td colspan="2">--insecure-skip-tls-verify</td>
424419
</tr>
425420
<tr>
426-
<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>
427423
<!--
428424
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
429425
-->
@@ -435,14 +431,30 @@ If true, the server's certificate will not be checked for validity. This will ma
435431
<td colspan="2">--kubeconfig string</td>
436432
</tr>
437433
<tr>
438-
<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>
439436
<!--
440437
Path to the kubeconfig file to use for CLI requests.
441438
-->
442439
CLI 请求要使用的 kubeconfig 文件的路径。
443440
</p></td>
444441
</tr>
445442

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+
446458
<tr>
447459
<td colspan="2">--match-server-version</td>
448460
</tr>

0 commit comments

Comments
 (0)