Commit b25908df by tingweiwang

pv pvc 设置改为三副本,并设置模板

1 parent 44b67545
Showing with 58 additions and 2 deletions
...@@ -5,9 +5,9 @@ metadata: ...@@ -5,9 +5,9 @@ metadata:
name: adl-pv name: adl-pv
spec: spec:
nfs: nfs:
path: NFS_PATH ##########模板变量,nfs的目录 path: NFS_PATH_1 ##########模板变量,nfs的目录
server: NFS_SERVER #############模板变量,nfs的ip server: NFS_SERVER_1 #############模板变量,nfs的ip
accessModes: accessModes:
- ReadWriteMany - ReadWriteMany
capacity: capacity:
...@@ -25,3 +25,59 @@ spec: ...@@ -25,3 +25,59 @@ spec:
resources: resources:
requests: requests:
storage: 100Gi storage: 100Gi
########################2####################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: adl-pv2
spec:
nfs:
path: NFS_PATH_2 ##########模板变量,nfs的目录
server: NFS_SERVER_2 #############模板变量,nfs的ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: adl-pvc2
namespace: autodl
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
########################3####################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: adl-pv3
spec:
nfs:
path: NFS_PATH_3 ##########模板变量,nfs的目录
server: NFS_SERVER_3 #############模板变量,nfs的ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: adl-pvc3
namespace: autodl
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!