Skip to content

Commit 5bee12f

Browse files
authored
[zh] Sync reference/kubectl/_index.md
1 parent c820dc3 commit 5bee12f

File tree

1 file changed

+3
-2
lines changed
  • content/zh-cn/docs/reference/kubectl

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ of `kubectl api-resources` to determine if a resource is namespaced.
200200
如果设置了 `POD_NAMESPACE` 环境变量,对命名空间资源的 CLI 操作对象将使用该变量值作为默认值。
201201
例如,如果该变量设置为 `seattle``kubectl get pods` 将返回 `seattle` 命名空间中的 Pod。
202202
这是因为 Pod 是一个命名空间资源,且命令中没有提供命名空间。
203+
请查看 `kubectl api-resources` 的输出,以确定某个资源是否是命名空间资源。
203204

204205
<!--
205206
Explicit use of `--namespace <value>` overrides this behavior.
@@ -255,7 +256,7 @@ kubectl config set-context --current --namespace=<namespace-name>
255256
<!--
256257
The following table includes short descriptions and the general syntax for all of the `kubectl` operations:
257258
-->
258-
下表包含所有 kubectl 操作的简短描述和普通语法:
259+
下表包含所有 `kubectl` 操作的简短描述和普通语法:
259260

260261
<!--
261262
Operation | Syntax | Description
@@ -664,7 +665,7 @@ kubectl get pods --sort-by=.metadata.name
664665
<!--
665666
Use the following set of examples to help you familiarize yourself with running the commonly used `kubectl` operations:
666667
-->
667-
使用以下示例集来帮助你熟悉运行常用 kubectl 操作:
668+
使用以下示例集来帮助你熟悉运行常用 `kubectl` 操作:
668669

669670
<!--
670671
`kubectl apply` - Apply or Update a resource from a file or stdin.

0 commit comments

Comments
 (0)