Commit 43903b4a by tingweiwang

Update 4-pv_pvc.yaml

1 parent 471f99cc
Showing with 38 additions and 16 deletions
###############1###################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: kpl-pv
labels:
pv: kpl-pv
spec:
nfs:
path: xxx #修改nfs的path
server: xxxx #nfs ip
path: NFS_PATH ##########模板变量,nfs的目录
server: NFS_SERVER #############模板变量,nfs的ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
......@@ -22,20 +25,28 @@ spec:
- ReadWriteMany
resources:
requests:
storage: 100Gi
###############2###################
storage: 500Gi
selector:
matchLabels:
pv: kpl-pv
########################2####################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: kpl-pv2
labels:
pv: kpl-pv2
spec:
nfs:
path: xxx #修改nfs的path
server: xxxx #nfs ip
accessModes:
path: NFS_2_PATH ##########模板变量,nfs的目录
server: NFS_2_SERVER #############模板变量,nfs的ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
storage: 400Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
......@@ -47,20 +58,28 @@ spec:
- ReadWriteMany
resources:
requests:
storage: 100Gi
###############1###################
storage: 400Gi
selector:
matchLabels:
pv: kpl-pv2
########################3####################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: kpl-pv3
labels:
pv: kpl-pv3
spec:
nfs:
path: xxx #修改nfs的path
server: xxxx #nfs ip
accessModes:
path: NFS_3_PATH ##########模板变量,nfs的目录
server: NFS_3_SERVER #############模板变量,nfs的ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
storage: 300Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
......@@ -72,4 +91,7 @@ spec:
- ReadWriteMany
resources:
requests:
storage: 100Gi
storage: 300Gi
selector:
matchLabels:
pv: kpl-pv3
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!