-
Notifications
You must be signed in to change notification settings - Fork 2
/
02-moosefs-ds.yml
50 lines (50 loc) · 1.13 KB
/
02-moosefs-ds.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
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: mfsmount
name: mfsmount
namespace: moosefs
spec:
selector:
matchLabels:
app: mfsmount
template:
metadata:
labels:
app: mfsmount
spec:
containers:
- env:
- name: MFSMASTER
value: mfsmaster.default
- name: MFSPATH
value: /moosefs-kubernetes
image: poeyashi/mfsmount:3.0.99-1
name: mfsmount
securityContext:
privileged: true
volumeMounts:
- mountPath: /dev/fuse
name: fuse
# set propatation to shared
# https://docs.docker.com/engine/admin/volumes/bind-mounts/#configure-bind-propagation
- mountPath: /mnt/mfsdata:shared
name: moosefs
tolerations:
- effect: NoSchedule
key: dedicated
value: worker
- effect: NoSchedule
key: node.kubernetes.io/not-ready
volumes:
- hostPath:
path: /dev/fuse
name: fuse
- hostPath:
path: /mnt/disks/moosefs
name: moosefs
updateStrategy:
type: OnDelete
...