-
Notifications
You must be signed in to change notification settings - Fork 0
/
pvc-pv-jhub.yaml
75 lines (75 loc) · 1.71 KB
/
pvc-pv-jhub.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
###### Persistent Volume
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-test-jhub-project
labels:
usage: pv-test-jhub-project
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
azureFile:
secretName: azure-fileshare-secret
shareName: sc-test-jhub-project
readOnly: false
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-test-jhub-user
labels:
usage: pv-test-jhub-user
spec:
capacity:
storage: 2Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
azureFile:
secretName: azure-fileshare-secret
shareName: sc-test-jhub-user
readOnly: false
###### Persistent Volume Claim
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-test-jhub-project
namespace: ddapr-jhub
# Set this annotation to NOT let Kubernetes automatically create
# a persistent volume for this volume claim.
annotations:
volume.beta.kubernetes.io/storage-class: ""
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
selector:
# To make sure we match the claim with the exact volume, match the label
matchLabels:
usage: pv-test-jhub-project
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-test-jhub-user
namespace: ddapr-jhub
# Set this annotation to NOT let Kubernetes automatically create
# a persistent volume for this volume claim.
annotations:
volume.beta.kubernetes.io/storage-class: ""
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
selector:
# To make sure we match the claim with the exact volume, match the label
matchLabels:
usage: pv-test-jhub-user