[zh] sync /kubectl/kubectl.md

pull/38400/head
Michael 2022-12-11 19:59:50 +08:00
parent 694c4f7e92
commit f6089a00af
1 changed files with 16 additions and 2 deletions

View File

@ -512,7 +512,19 @@ kubectl 的配置 ("kubeconfig") 文件的路径。默认值: "$HOME/.kube/confi
<!--
When set to false, turns off extra HTTP headers detailing invoked kubectl command (Kubernetes version v1.22 or later)
-->
设置为 false 时,将关闭额外的 HTTP 标头,不再详细说明被调用的 kubectl 命令 (此变量适用于 Kubernetes v1.22 或更高版本)
设置为 false 时,将关闭额外的 HTTP 标头,不再详细说明被调用的 kubectl 命令(此变量适用于 Kubernetes v1.22 或更高版本)
</td>
</tr>
<tr>
<td colspan="2">KUBECTL_EXPLAIN_OPENAPIV3</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
Toggles whether calls to `kubectl explain` use the new OpenAPIv3 data source available. OpenAPIV3 is enabled by default since Kubernetes 1.24.
-->
切换对 `kubectl explain` 的调用是否使用可用的新 OpenAPIv3 数据源。OpenAPIV3 自 Kubernetes 1.24 起默认被启用。
</td>
</tr>
@ -566,6 +578,7 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
* [kubectl diff](/docs/reference/generated/kubectl/kubectl-commands#diff) - Diff live version against would-be applied version
* [kubectl drain](/docs/reference/generated/kubectl/kubectl-commands#drain) - Drain node in preparation for maintenance
* [kubectl edit](/docs/reference/generated/kubectl/kubectl-commands#edit) - Edit a resource on the server
* [kubectl events](/docs/reference/generated/kubectl/kubectl-commands#events) - List events
* [kubectl exec](/docs/reference/generated/kubectl/kubectl-commands#exec) - Execute a command in a container
* [kubectl explain](/docs/reference/generated/kubectl/kubectl-commands#explain) - Documentation of resources
* [kubectl expose](/docs/reference/generated/kubectl/kubectl-commands#expose) - Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service
@ -574,6 +587,7 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
* [kubectl diff](/docs/reference/generated/kubectl/kubectl-commands#diff) - 显示目前版本与将要应用的版本之间的差异
* [kubectl drain](/docs/reference/generated/kubectl/kubectl-commands#drain) - 腾空节点,准备维护
* [kubectl edit](/docs/reference/generated/kubectl/kubectl-commands#edit) - 修改服务器上的某资源
* [kubectl events](/docs/reference/generated/kubectl/kubectl-commands#events) - 列举事件
* [kubectl exec](/docs/reference/generated/kubectl/kubectl-commands#exec) - 在容器中执行相关命令
* [kubectl explain](/docs/reference/generated/kubectl/kubectl-commands#explain) - 显示资源文档说明
* [kubectl expose](/docs/reference/generated/kubectl/kubectl-commands#expose) - 给定副本控制器、服务、Deployment 或 Pod将其暴露为新的 kubernetes Service