From 4916d4bd81eb2d627142438f681c56f3b0d20ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=85=E8=BF=9B=E8=B6=85?= Date: Wed, 29 Dec 2021 22:59:13 +0800 Subject: [PATCH] [zh] synchronize translate configure-persistent-volume-storage.md --- .../configure-persistent-volume-storage.md | 19 ++++++++++++++++ .../examples/pods/storage/pv-duplicate.yaml | 22 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 content/zh/examples/pods/storage/pv-duplicate.yaml diff --git a/content/zh/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md b/content/zh/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md index 0b455867e8..b3253b4d00 100644 --- a/content/zh/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md +++ b/content/zh/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md @@ -387,6 +387,25 @@ You can now close the shell to your Node. --> 你现在可以关闭连接到节点的 Shell。 + + +## 在两个地方挂载相同的 persistentVolume + +{{< codenew file="pods/storage/pv-duplicate.yaml" >}} + + +你可以在 nginx 容器上执行两个卷挂载: + +`/usr/share/nginx/html` 用于静态网站 +`/etc/nginx/nginx.conf` 作为默认配置 +