File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/zh-cn/docs/tutorials/configuration Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/website/main/conte
81
81
Examine the contents of the Redis pod manifest and note the following:
82
82
83
83
* A volume named `config` is created by `spec.volumes[1]`
84
- * The `key` and `path` under `spec.volumes[1].items[0]` exposes the `redis-config` key from the
84
+ * The `key` and `path` under `spec.volumes[1].configMap. items[0]` exposes the `redis-config` key from the
85
85
`example-redis-config` ConfigMap as a file named `redis.conf` on the `config` volume.
86
86
* The `config` volume is then mounted at `/redis-master` by `spec.containers[0].volumeMounts[1]`.
87
87
@@ -91,7 +91,7 @@ ConfigMap above as `/redis-master/redis.conf` inside the Pod.
91
91
检查 Redis pod 清单的内容,并注意以下几点:
92
92
93
93
* 由 ` spec.volumes[1] ` 创建一个名为 ` config ` 的卷。
94
- * ` spec.volumes[1].items[0] ` 下的 ` key ` 和 ` path ` 会将来自 ` example-redis-config `
94
+ * ` spec.volumes[1].configMap. items[0] ` 下的 ` key ` 和 ` path ` 会将来自 ` example-redis-config `
95
95
ConfigMap 中的 ` redis-config ` 键公开在 ` config ` 卷上一个名为 ` redis.conf ` 的文件中。
96
96
* 然后 ` config ` 卷被 ` spec.containers[0].volumeMounts[1] ` 挂载在 ` /redis-master ` 。
97
97
You can’t perform that action at this time.
0 commit comments