Merge pull request #30223 from slayer321/add-volume-example

docs: add PV duplicate example
This commit is contained in:
Kubernetes Prow Robot
2021-12-05 15:12:32 -08:00
committed by GitHub
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
containers:
- name: test
image: nginx
volumeMounts:
- name: site-data
mountPath: /usr/share/nginx/html
subPath: html
- name: config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
volumes:
- name: config
persistentVolumeClaim:
claimName: test-nfs-claim