Skip to content

Commit e3d1047

Browse files
authored
Merge pull request #52244 from my-git9/npa-32416
[zh-cn]sync kubectl_debug/_index.md
2 parents bca4d12 + 892ccaf commit e3d1047

File tree

1 file changed

+69
-53
lines changed
  • content/zh-cn/docs/reference/kubectl/generated/kubectl_debug

1 file changed

+69
-53
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_debug/_index.md

Lines changed: 69 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ kubectl debug node/mynode -it --image=busybox
117117
<td colspan="2">--arguments-only</td>
118118
</tr>
119119
<tr>
120-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
120+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
121+
<p>
121122
<!--
122123
If specified, everything after -- will be passed to the new container as Args instead of Command.
123124
-->
@@ -130,7 +131,8 @@ If specified, everything after -- will be passed to the new container as Args in
130131
<td colspan="2">--attach</td>
131132
</tr>
132133
<tr>
133-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
134+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
135+
<p>
134136
<!--
135137
If true, wait for the container to start running, and then attach as if 'kubectl attach ...' were called. Default false, unless '-i/--stdin' is set, in which case the default is true.
136138
-->
@@ -144,7 +146,8 @@ If true, wait for the container to start running, and then attach as if 'kubectl
144146
<td colspan="2">-c, --container string</td>
145147
</tr>
146148
<tr>
147-
<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>
148151
<!--
149152
Container name to use for debug container.
150153
-->
@@ -157,7 +160,8 @@ Container name to use for debug container.
157160
<td colspan="2">--copy-to string</td>
158161
</tr>
159162
<tr>
160-
<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>
161165
<!--
162166
Create a copy of the target Pod with this name.
163167
-->
@@ -184,7 +188,8 @@ Path to a JSON or YAML file containing a partial container spec to customize bui
184188
<td colspan="2">--env stringToString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: []-->默认值:[]</td>
185189
</tr>
186190
<tr>
187-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
191+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
192+
<p>
188193
<!--
189194
Environment variables to set in the container.
190195
-->
@@ -197,7 +202,8 @@ Environment variables to set in the container.
197202
<td colspan="2">-f, --filename strings</td>
198203
</tr>
199204
<tr>
200-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
205+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
206+
<p>
201207
<!--
202208
identifying the resource to debug
203209
-->
@@ -210,7 +216,8 @@ identifying the resource to debug
210216
<td colspan="2">-h, --help</td>
211217
</tr>
212218
<tr>
213-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
219+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
220+
<p>
214221
<!--
215222
help for debug
216223
-->
@@ -223,7 +230,8 @@ debug 操作的帮助命令。
223230
<td colspan="2">--image string</td>
224231
</tr>
225232
<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>
227235
<!--
228236
Container image to use for debug container.
229237
-->
@@ -236,7 +244,8 @@ Container image to use for debug container.
236244
<td colspan="2">--image-pull-policy string</td>
237245
</tr>
238246
<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>
240249
<!--
241250
The image pull policy for the container. If left empty, this value will not be specified by the client and defaulted by the server.
242251
-->
@@ -336,7 +345,8 @@ If true, keep the original startup probes.(This flag only works when used with '
336345
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "legacy"-->默认值:"legacy"</td>
337346
</tr>
338347
<tr>
339-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
348+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
349+
<p>
340350
<!--
341351
Options are &quot;legacy&quot;, &quot;general&quot;, &quot;baseline&quot;, &quot;netadmin&quot;, &quot;restricted&quot; or &quot;sysadmin&quot;.
342352
-->
@@ -349,7 +359,8 @@ Options are &quot;legacy&quot;, &quot;general&quot;, &quot;baseline&quot;, &quot
349359
<td colspan="2">-q, --quiet</td>
350360
</tr>
351361
<tr>
352-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
362+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
363+
<p>
353364
<!--
354365
If true, suppress informational messages.
355366
-->
@@ -362,11 +373,12 @@ If true, suppress informational messages.
362373
<td colspan="2">--replace</td>
363374
</tr>
364375
<tr>
365-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
376+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
377+
<p>
366378
<!--
367379
When used with '--copy-to', delete the original Pod.
368380
-->
369-
当与 --copy-to 一起使用时,删除原来的 Pod。
381+
当与 '--copy-to' 一起使用时,删除原来的 Pod。
370382
</p>
371383
</td>
372384
</tr>
@@ -375,11 +387,12 @@ When used with '--copy-to', delete the original Pod.
375387
<td colspan="2">--same-node</td>
376388
</tr>
377389
<tr>
378-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
390+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
391+
<p>
379392
<!--
380393
When used with '--copy-to', schedule the copy of target Pod on the same node.
381394
-->
382-
当与 --copy-to 一起使用时,将目标 Pod 的副本调度到同一个节点上。
395+
当与 '--copy-to' 一起使用时,将目标 Pod 的副本调度到同一个节点上。
383396
</p>
384397
</td>
385398
</tr>
@@ -388,11 +401,12 @@ When used with '--copy-to', schedule the copy of target Pod on the same node.
388401
<td colspan="2">--set-image stringToString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: []-->默认值:[]</td>
389402
</tr>
390403
<tr>
391-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
404+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
405+
<p>
392406
<!--
393407
When used with '--copy-to', a list of name=image pairs for changing container images, similar to how 'kubectl set image' works.
394408
-->
395-
当与 --copy-to 一起使用时,提供一个 name=image 对的列表以更改容器镜像,类似于 `kubectl set image` 的工作方式。
409+
当与 '--copy-to' 一起使用时,提供一个 name=image 对的列表以更改容器镜像,类似于 `kubectl set image` 的工作方式。
396410
</p>
397411
</td>
398412
</tr>
@@ -401,11 +415,12 @@ When used with '--copy-to', a list of name=image pairs for changing container im
401415
<td colspan="2">--share-processes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: true-->默认值:true</td>
402416
</tr>
403417
<tr>
404-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
418+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
419+
<p>
405420
<!--
406421
When used with '--copy-to', enable process namespace sharing in the copy.
407422
-->
408-
当与 --copy-to 一起使用时,在副本中启用进程命名空间共享。
423+
当与 '--copy-to' 一起使用时,在副本中启用进程命名空间共享。
409424
</p>
410425
</td>
411426
</tr>
@@ -414,7 +429,8 @@ When used with '--copy-to', enable process namespace sharing in the copy.
414429
<td colspan="2">-i, --stdin</td>
415430
</tr>
416431
<tr>
417-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
432+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
433+
<p>
418434
<!--
419435
Keep stdin open on the container(s) in the pod, even if nothing is attached.
420436
-->
@@ -427,7 +443,8 @@ Keep stdin open on the container(s) in the pod, even if nothing is attached.
427443
<td colspan="2">--target string</td>
428444
</tr>
429445
<tr>
430-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
446+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
447+
<p>
431448
<!--
432449
When using an ephemeral container, target processes in this container name.
433450
-->
@@ -440,7 +457,8 @@ When using an ephemeral container, target processes in this container name.
440457
<td colspan="2">-t, --tty</td>
441458
</tr>
442459
<tr>
443-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
460+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
461+
<p>
444462
<!--
445463
Allocate a TTY for the debugging container.
446464
-->
@@ -464,7 +482,8 @@ Allocate a TTY for the debugging container.
464482
<td colspan="2">--as string</td>
465483
</tr>
466484
<tr>
467-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
485+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
486+
<p>
468487
<!--
469488
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
470489
-->
@@ -476,7 +495,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
476495
<td colspan="2">--as-group strings</td>
477496
</tr>
478497
<tr>
479-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
498+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
499+
<p>
480500
<!--
481501
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
482502
-->
@@ -488,7 +508,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
488508
<td colspan="2">--as-uid string</td>
489509
</tr>
490510
<tr>
491-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
511+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
512+
<p>
492513
<!--
493514
UID to impersonate for the operation.
494515
-->
@@ -500,7 +521,8 @@ UID to impersonate for the operation.
500521
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "$HOME/.kube/cache"-->默认值:"$HOME/.kube/cache"</td>
501522
</tr>
502523
<tr>
503-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
524+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
525+
<p>
504526
<!--
505527
Default cache directory
506528
-->
@@ -512,7 +534,8 @@ Default cache directory
512534
<td colspan="2">--certificate-authority string</td>
513535
</tr>
514536
<tr>
515-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
537+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
538+
<p>
516539
<!--
517540
Path to a cert file for the certificate authority
518541
-->
@@ -524,7 +547,8 @@ Path to a cert file for the certificate authority
524547
<td colspan="2">--client-certificate string</td>
525548
</tr>
526549
<tr>
527-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
550+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
551+
<p>
528552
<!--
529553
Path to a client certificate file for TLS
530554
-->
@@ -568,30 +592,6 @@ The name of the kubeconfig context to use
568592
</p></td>
569593
</tr>
570594

571-
<tr>
572-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
573-
</tr>
574-
<tr>
575-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
576-
<!--
577-
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.
578-
-->
579-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
580-
</p></td>
581-
</tr>
582-
583-
<tr>
584-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
585-
</tr>
586-
<tr>
587-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
588-
<!--
589-
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.
590-
-->
591-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
592-
</p></td>
593-
</tr>
594-
595595
<tr>
596596
<td colspan="2">--disable-compression</td>
597597
</tr>
@@ -620,14 +620,30 @@ If true, the server's certificate will not be checked for validity. This will ma
620620
<td colspan="2">--kubeconfig string</td>
621621
</tr>
622622
<tr>
623-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
623+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
624+
<p>
624625
<!--
625626
Path to the kubeconfig file to use for CLI requests.
626627
-->
627628
CLI 请求要使用的 kubeconfig 文件的路径。
628629
</p></td>
629630
</tr>
630631

632+
<tr>
633+
<td colspan="2">--kuberc string</td>
634+
</tr>
635+
<tr>
636+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
637+
<p>
638+
<!--
639+
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.
640+
-->
641+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
642+
特性门控或关闭 KUBERC=off 特性来禁用此功能。
643+
</p>
644+
</td>
645+
</tr>
646+
631647
<tr>
632648
<td colspan="2">--match-server-version</td>
633649
</tr>

0 commit comments

Comments
 (0)