Skip to content

Commit 2b6b6cf

Browse files
author
Guangwen Feng
committed
[zh] Update kubectl.md
Signed-off-by: Guangwen Feng <[email protected]>
1 parent 2363c92 commit 2b6b6cf

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

content/zh/docs/reference/kubectl/kubectl.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,41 @@ kubectl [flags]
488488
</tbody>
489489
</table>
490490

491+
## {{% heading "envvars" %}}
491492

493+
<table style="width: 100%; table-layout: fixed;">
494+
<colgroup>
495+
<col span="1" style="width: 10px;" />
496+
<col span="1" />
497+
</colgroup>
498+
<tbody>
492499

500+
<tr>
501+
<td colspan="2">KUBECONFIG</td>
502+
</tr>
503+
<tr>
504+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
505+
<!--
506+
Path to the kubectl configuration ("kubeconfig") file. Default: "$HOME/.kube/config"
507+
-->
508+
kubectl 的配置 ("kubeconfig") 文件的路径。默认值: "$HOME/.kube/config"
509+
</td>
510+
</tr>
493511

512+
<tr>
513+
<td colspan="2">KUBECTL_COMMAND_HEADERS</td>
514+
</tr>
515+
<tr>
516+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
517+
<!--
518+
When set to false, turns off extra HTTP headers detailing invoked kubectl command (Kubernetes version v1.22 or later)
519+
-->
520+
设置为 false 时,关闭用于详细说明被调用的 kubectl 命令的额外 HTTP 标头 (Kubernetes 版本为 v1.22 或者更高)
521+
</td>
522+
</tr>
523+
524+
</tbody>
525+
</table>
494526

495527
## {{% heading "seealso" %}}
496528

data/i18n/zh/zh.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ other = "我是..."
4949
[docs_label_users]
5050
other = "用户"
5151

52+
[envvars_heading]
53+
other = "环境变量"
54+
5255
[examples_heading]
5356
other = "示例"
5457

0 commit comments

Comments
 (0)