Skip to content

Commit 0386c97

Browse files
authored
Merge pull request #53375 from my-git9/npe-6849
[zh-cn]sync configmap
2 parents c87d16b + 85f52b0 commit 0386c97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/zh-cn/docs/concepts/configuration/configmap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,15 +437,15 @@ This should confirm that the two key-value pairs from the ConfigMap have been se
437437
-->
438438
`envFrom` 字段指示 Kubernetes 使用其中嵌套的源创建环境变量。
439439
内部的 `configMapRef` 通过 ConfigMap 的名称引用之,并选择其所有键值对。
440-
将 Pod 添加到你的集群中,然后检索其日志以查看 printenv 命令的输出。
440+
将 Pod 添加到你的集群中,然后检索其日志以查看 `printenv` 命令的输出。
441441
此操作可确认来自 ConfigMap 的两个键值对已被设置为环境变量:
442442

443443
```shell
444444
kubectl apply -f env-configmap.yaml
445445
```
446446

447447
```shell
448-
kubectl logs pod/ env-configmap
448+
kubectl logs pod/env-configmap
449449
```
450450

451451
<!--

0 commit comments

Comments
 (0)