-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemonset.yaml
47 lines (47 loc) · 1.25 KB
/
daemonset.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
apiVersion: apps/v1
# Take care: it requires Kubernetes 1.10 and feature is only in Beta
kind: DaemonSet
metadata:
name: gcsfuse-slim
labels:
app: gcsfuse-daemonset
spec:
selector:
matchLabels:
name: gcsfuse-slim
template:
metadata:
labels:
name: gcsfuse-slim
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: gcsfuse
image: spacebel/gcsfuse-slim
resources:
requests:
cpu: 200m
memory: 200Mi
securityContext:
privileged: true
capabilities:
add:
- SYS_ADMIN
lifecycle:
postStart:
exec:
command: ["gcsfuse", "-o", "nonempty", "--debug_fuse","gep-default-store", "/gcsfuse/gep-default-store"]
preStop:
exec:
command: ["fusermount", "-u", "/gcsfuse/gep-default-store"]
volumeMounts:
- name: default-store-volume
mountPropagation: Bidirectional
mountPath: /gcsfuse/gep-default-store
terminationGracePeriodSeconds: 10
volumes:
- name: default-store-volume
hostPath:
path: /mnt/disks/gep-default-store