Commit 60ccdf4d by tingweiwang

add pv lable selector

1 parent b19723ae
Showing with 17 additions and 0 deletions
......@@ -3,6 +3,8 @@ apiVersion: v1
kind: PersistentVolume
metadata:
name: adl-pv
labels:
pv: adl-pv
spec:
nfs:
path: NFS_PATH ##########模板变量,nfs的目录
......@@ -24,12 +26,17 @@ spec:
resources:
requests:
storage: 500Gi
selector:
matchLabels:
pv: adl-pv
########################2####################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: adl-pv2
labels:
pv: adl-pv2
spec:
nfs:
path: NFS_2_PATH ##########模板变量,nfs的目录
......@@ -51,12 +58,18 @@ spec:
resources:
requests:
storage: 400Gi
selector:
matchLabels:
pv: adl-pv2
########################3####################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: adl-pv3
labels:
pv: adl-pv3
spec:
nfs:
path: NFS_3_PATH ##########模板变量,nfs的目录
......@@ -78,3 +91,7 @@ spec:
resources:
requests:
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!