Commit ef68244b by wangtingwei

pv pvc多实例

1 parent 43de8dcd
#################1#####################
---
apiVersion: v1
kind: PersistentVolume
......@@ -25,3 +26,61 @@ spec:
resources:
requests:
storage: 100Gi
####################2#########################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: adl-pv2
spec:
nfs:
path: xxx #nfs path
server: xxxx #nfs ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: adl-pvc2
namespace: autodl
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
#################################################
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: adl-pv3
spec:
nfs:
path: xxx #nfs path
server: xxxx #nfs ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: adl-pvc3
namespace: autodl
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
###############1###################
apiVersion: v1
kind: PersistentVolume
metadata:
......@@ -22,3 +23,53 @@ spec:
resources:
requests:
storage: 100Gi
###############2###################
apiVersion: v1
kind: PersistentVolume
metadata:
name: kpl-pv2
spec:
nfs:
path: xxx #修改nfs的path
server: xxxx #nfs ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: kpl-pvc2
namespace: kpl
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
###############1###################
apiVersion: v1
kind: PersistentVolume
metadata:
name: kpl-pv3
spec:
nfs:
path: xxx #修改nfs的path
server: xxxx #nfs ip
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: kpl-pvc3
namespace: kpl
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!