Skip to content

Commit 4916d4b

Browse files
committed
[zh] synchronize translate configure-persistent-volume-storage.md
1 parent ff4e472 commit 4916d4b

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

content/zh/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,25 @@ You can now close the shell to your Node.
387387
-->
388388
你现在可以关闭连接到节点的 Shell。
389389

390+
<!--
391+
## Mounting the same persistentVolume in two places
392+
-->
393+
394+
## 在两个地方挂载相同的 persistentVolume
395+
396+
{{< codenew file="pods/storage/pv-duplicate.yaml" >}}
397+
398+
<!--
399+
You can perform 2 volume mounts on your nginx container:
400+
401+
`/usr/share/nginx/html` for the static website
402+
`/etc/nginx/nginx.conf` for the default config
403+
-->
404+
你可以在 nginx 容器上执行两个卷挂载:
405+
406+
`/usr/share/nginx/html` 用于静态网站
407+
`/etc/nginx/nginx.conf` 作为默认配置
408+
390409
<!-- discussion -->
391410

392411
<!--
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
name: test
6+
spec:
7+
containers:
8+
- name: test
9+
image: nginx
10+
volumeMounts:
11+
# 网站数据挂载
12+
- name: config
13+
mountPath: /usr/share/nginx/html
14+
subPath: html
15+
# Nginx 配置挂载
16+
- name: config
17+
mountPath: /etc/nginx/nginx.conf
18+
subPath: nginx.conf
19+
volumes:
20+
- name: config
21+
persistentVolumeClaim:
22+
claimName: test-nfs-claim

0 commit comments

Comments
 (0)