-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemonset-in-k8s.yaml
37 lines (37 loc) · 940 Bytes
/
daemonset-in-k8s.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: sanlock-daemon
namespace: sanlock-system
spec:
selector:
matchLabels:
name: sanlock-daemon
template:
metadata:
labels:
name: sanlock-daemon
spec:
hostPID: true
containers:
- name: sanlock-daemon
image: carezkh/sanlock-daemon:v0.3.0
securityContext:
privileged: true
resources:
# TODO: set sanlock daemon QoS to Guaranteed
requests:
memory: 30Mi
volumeMounts:
- name: sanlock-run
mountPath: /run/sanlock
- name: sanlock-lib
mountPath: /var/lib/sanlock
mountPropagation: Bidirectional
volumes:
- name: sanlock-run
hostPath:
path: /run/sanlock
- name: sanlock-lib
hostPath:
path: /var/lib/sanlock