This repository has been archived by the owner on Nov 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrozofs.yaml
64 lines (61 loc) · 1.45 KB
/
rozofs.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: rozofs
namespace: default
spec:
selector:
matchLabels:
app: rozofs
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: rozofs
spec:
hostNetwork: true
initContainers:
- name: init
image: kvaps/rozofs:latest
command:
- /bin/sh
- -c
- |
systemctl start rpcbind.service
for config in rozofs.conf export.conf storage.conf; do
if [ ! -f /host-etc/rozofs/$config ]; then
cp /etc/rozofs/$config /host-etc/rozofs/$config
fi
done
volumeMounts:
- name: config
mountPath: /host-etc/rozofs
- name: systemd-run
mountPath: /var/run/systemd
containers:
- name: rozofs
image: kvaps/rozofs:latest
volumeMounts:
- name: config
mountPath: /etc/rozofs
- name: data
mountPath: /srv/rozofs
- name: mnt
mountPath: /mnt
mountPropagation: Bidirectional
securityContext:
privileged: true
volumes:
- name: config
hostPath:
path: /data/local/config/rozofs
- name: data
hostPath:
path: /data/local/data/rozofs
- name: systemd-run
hostPath:
path: /var/run/systemd
- name: mnt
hostPath:
path: /mnt