-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvolume-pv-pvc.yaml
38 lines (35 loc) · 1.04 KB
/
volume-pv-pvc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Create PersistentVolume and PersistentVolumeClaim for EOS automounts.
apiVersion: v1
kind: PersistentVolume
metadata:
# PV name contains namespace name of its target PVC so that we can distinguish it easier.
name: eos-default
spec:
csi:
driver: eosxd.csi.cern.ch
# volumeHandle is used by Kubelet to identify a volume, and must be unique
# across all deployed PersistentVolume objects in the cluster.
# We'll use the name of this PersistentVolume object, but the value may be arbitrary.
volumeHandle: eos-default
accessModes:
- ReadWriteMany
capacity:
# Volume size value has no effect and is ignored
# by the driver, but must be non-zero.
storage: 1
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: eos
namespace: default
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1
# volumeName must match the name we have set in the PersistentVolume defined above.
volumeName: eos-default
# Storage class name must be set to an empty string "".
storageClassName: ""