File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
content/zh-cn/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ of `kubectl api-resources` to determine if a resource is namespaced.
200
200
如果设置了 ` POD_NAMESPACE ` 环境变量,对命名空间资源的 CLI 操作对象将使用该变量值作为默认值。
201
201
例如,如果该变量设置为 ` seattle ` ,` kubectl get pods ` 将返回 ` seattle ` 命名空间中的 Pod。
202
202
这是因为 Pod 是一个命名空间资源,且命令中没有提供命名空间。
203
+ 请查看 ` kubectl api-resources ` 的输出,以确定某个资源是否是命名空间资源。
203
204
204
205
<!--
205
206
Explicit use of `--namespace <value>` overrides this behavior.
@@ -255,7 +256,7 @@ kubectl config set-context --current --namespace=<namespace-name>
255
256
<!--
256
257
The following table includes short descriptions and the general syntax for all of the `kubectl` operations:
257
258
-->
258
- 下表包含所有 kubectl 操作的简短描述和普通语法:
259
+ 下表包含所有 ` kubectl ` 操作的简短描述和普通语法:
259
260
260
261
<!--
261
262
Operation | Syntax | Description
@@ -664,7 +665,7 @@ kubectl get pods --sort-by=.metadata.name
664
665
<!--
665
666
Use the following set of examples to help you familiarize yourself with running the commonly used `kubectl` operations:
666
667
-->
667
- 使用以下示例集来帮助你熟悉运行常用 kubectl 操作:
668
+ 使用以下示例集来帮助你熟悉运行常用 ` kubectl ` 操作:
668
669
669
670
<!--
670
671
`kubectl apply` - Apply or Update a resource from a file or stdin.
You can’t perform that action at this time.
0 commit comments