Commit 471f99cc by tingweiwang

Update 4-pv_pvc.yaml

1 parent 53cc6b3f
Showing with 31 additions and 21 deletions
#################1#####################
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolume kind: PersistentVolume
metadata: metadata:
name: adl-pv name: adl-pv
labels:
pv: adl-pv
spec: spec:
nfs: nfs:
path: xxx #nfs path path: NFS_PATH ##########模板变量,nfs的目录
server: NFS_SERVER #############模板变量,nfs的ip
server: xxxx #nfs ip
accessModes: accessModes:
- ReadWriteMany - ReadWriteMany
capacity: capacity:
...@@ -25,22 +25,26 @@ spec: ...@@ -25,22 +25,26 @@ spec:
- ReadWriteMany - ReadWriteMany
resources: resources:
requests: requests:
storage: 100Gi storage: 500Gi
####################2######################### selector:
matchLabels:
pv: adl-pv
########################2####################
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolume kind: PersistentVolume
metadata: metadata:
name: adl-pv2 name: adl-pv2
labels:
pv: adl-pv2
spec: spec:
nfs: nfs:
path: xxx #nfs path path: NFS_2_PATH ##########模板变量,nfs的目录
server: NFS_2_SERVER #############模板变量,nfs的ip
server: xxxx #nfs ip accessModes:
accessModes:
- ReadWriteMany - ReadWriteMany
capacity: capacity:
storage: 500Gi storage: 400Gi
--- ---
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
...@@ -53,22 +57,27 @@ spec: ...@@ -53,22 +57,27 @@ spec:
- ReadWriteMany - ReadWriteMany
resources: resources:
requests: requests:
storage: 100Gi storage: 400Gi
################################################# selector:
matchLabels:
pv: adl-pv2
########################3####################
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolume kind: PersistentVolume
metadata: metadata:
name: adl-pv3 name: adl-pv3
labels:
pv: adl-pv3
spec: spec:
nfs: nfs:
path: xxx #nfs path path: NFS_3_PATH ##########模板变量,nfs的目录
server: NFS_3_SERVER #############模板变量,nfs的ip
server: xxxx #nfs ip accessModes:
accessModes:
- ReadWriteMany - ReadWriteMany
capacity: capacity:
storage: 500Gi storage: 300Gi
--- ---
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
...@@ -81,6 +90,7 @@ spec: ...@@ -81,6 +90,7 @@ spec:
- ReadWriteMany - ReadWriteMany
resources: resources:
requests: requests:
storage: 100Gi storage: 300Gi
selector:
matchLabels:
pv: adl-pv3
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!