forked from juicedata/juicefs-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
juicefs-csi-driver-config.example.yaml
77 lines (68 loc) · 2.18 KB
/
juicefs-csi-driver-config.example.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
76
77
apiVersion: v1
kind: ConfigMap
metadata:
name: juicefs-csi-driver-config
namespace: kube-system
data:
config.yaml: |-
# Set to true to schedule mount pod to node with via nodeSelector, rather than nodeName
enableNodeSelector: false
# The mountPodPatch section defines the mount pod spec
# Each item will be recursively merged into PVC settings according to its pvcSelector
# If pvcSelector isn't set, the patch will be applied to all PVCs
# Variable templates are supported, e.g. ${MOUNT_POINT}, ${SUB_PATH}, ${VOLUME_ID}
mountPodPatch:
- lifecycle:
preStop:
exec:
command:
- sh
- -c
- +e
- umount -l ${MOUNT_POINT}; rmdir ${MOUNT_POINT}; exit 0
# Example configurations:
# - pvcSelector:
# matchLabels:
# disable-host-network: "true"
# hostNetwork: false
# - pvcSelector:
# matchLabels:
# apply-labels: "true"
# labels:
# custom-labels: "asasasa"
# - pvcSelector:
# matchLabels:
# custom-resources: "true"
# resources:
# requests:
# cpu: 100m
# memory: 512Mi
# - pvcSelector:
# matchLabels:
# custom-image: "true"
# eeMountImage: "juicedata/mount:ee-5.0.17-0c63dc5"
# ceMountImage: "juicedata/mount:ce-v1.2.0"
# - pvcSelector:
# matchLabels:
# custom-grace-period: "true"
# terminationGracePeriodSeconds: 60
# select pvc by storageClassName
# - pvcSelector:
# matchStorageClassName: juicefs-sc
# terminationGracePeriodSeconds: 60
# select pvc by pvc name
# - pvcSelector:
# matchName: pvc-name
# terminationGracePeriodSeconds: 60
# - pvcSelector:
# matchLabels:
# custom-liveness: "true"
# livenessProbe:
# exec:
# command:
# - stat
# - ${MOUNT_POINT}/${SUB_PATH}
# failureThreshold: 3
# initialDelaySeconds: 10
# periodSeconds: 5
# successThreshold: 1