Skip to content

Commit

Permalink
Update configure-redis-using-configmap.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasyhh committed Nov 10, 2022
1 parent 24cf530 commit d815915
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ConfigMap above as `/redis-master/redis.conf` inside the Pod.

*`spec.volumes[1]` 创建一个名为 `config` 的卷。
* `spec.volumes[1].items[0]` 下的 `key``path` 会将来自 `example-redis-config`
ConfigMap 中的 `redis-config` 密钥公开在 `config` 卷上一个名为 `redis-config` 的文件中。
ConfigMap 中的 `redis-config` 密钥公开在 `config` 卷上一个名为 `redis.conf` 的文件中。
* 然后 `config` 卷被 `spec.containers[0].volumeMounts[1]` 挂载在 `/redis-master`

这样做的最终效果是将上面 `example-redis-config` 配置中 `data.redis-config`
Expand Down

0 comments on commit d815915

Please sign in to comment.