-
Notifications
You must be signed in to change notification settings - Fork 0
/
pv-and-pvc-sample.yaml
58 lines (58 loc) · 1.01 KB
/
pv-and-pvc-sample.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
# ---
# apiVersion: v1
# kind: PersistentVolume
# metadata:
# name: pv-log
# spec:
# storageClassName: manual
# accessModes:
# - ReadWriteMany
# persistentVolumeReclaimPolicy: Retain
# capacity:
# storage: 100Mi
# hostPath:
# path: /pv/log
# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: claim-log-1
# spec:
# accessModes:
# - ReadWriteMany
# resources:
# requests:
# storage: 50Mi
# storageClassName: manual
# volumeName: pv-log
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: models-1-0-0
labels:
name: models-1-0-0
spec:
capacity:
storage: 10Gi
storageClassName: standard
accessModes:
- ReadOnlyMany
gcePersistentDisk:
pdName: models-1-0-0
fsType: ext4
readOnly: true
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: models-1-0-0-claim
spec:
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 200Gi
selector:
matchLabels:
name: models-1-0-0