-
Notifications
You must be signed in to change notification settings - Fork 11
/
k8s-mode-storage.yml
66 lines (66 loc) · 1.48 KB
/
k8s-mode-storage.yml
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
# This file configures all of runner k8s mode caching and is structured as follows:
# test storageclass
# test persistentvolumeclaim
# production storageclass
# production persistentvolumeclaim
#
# All things specific to Azure contain "azure" somewhere in the value! Make
# sure that you read the docs for your storage provider if it's different.
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: k8s-mode
namespace: test-runners
provisioner: file.csi.azure.com # replace with "kubernetes.io/azure-file" if aks version is less than 1.21
allowVolumeExpansion: true
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=1000
- gid=1000
- mfsymlinks
- cache=strict
- actimeo=30
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: test-k8s-cache-pvc
namespace: test-runners
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: k8s-mode
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: k8s-mode
namespace: runners
provisioner: file.csi.azure.com # replace with "kubernetes.io/azure-file" if aks version is less than 1.21
allowVolumeExpansion: true
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=1000
- gid=1000
- mfsymlinks
- cache=strict
- actimeo=30
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: prod-k8s-cache-pvc
namespace: runners
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: k8s-mode