-
Notifications
You must be signed in to change notification settings - Fork 0
/
lacework-k8s.yaml
104 lines (103 loc) · 2.6 KB
/
lacework-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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: lacework-agent
labels:
tier: monitoring
app: lacework-agent
spec:
selector:
matchLabels:
name: lacework
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
name: lacework
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
terminationGracePeriodSeconds: 20
hostPID: true
hostNetwork: true
containers:
- name: lacework
image: lacework/datacollector
imagePullPolicy: Always
resources:
requests:
cpu: "100m"
memory: "512Mi"
securityContext:
privileged: true
volumeMounts:
- name: cfgmap
mountPath: /var/lib/lacework/config
- name: dev
mountPath: /dev
- name: run-sock
mountPath: /var/run/docker.sock
- name: run-pid
mountPath: /var/run/docker.pid
- name: sys
mountPath: /sys
- name: log
mountPath: /var/log
- name: passwd
mountPath: /etc/passwd
readOnly: true
- name: group
mountPath: /etc/group
readOnly: true
- name: hostlacework
mountPath: /var/lib/lacework/collector
- name: hostroot
mountPath: /laceworkfim
readOnly: true
- name: podinfo
mountPath: /etc/podinfo
volumes:
- name: dev
hostPath:
path: /dev
- name: run-sock
hostPath:
path: /var/run/docker.sock
- name: run-pid
hostPath:
path: /var/run/docker.pid
- name: sys
hostPath:
path: /sys
- name: log
hostPath:
path: /var/log
- name: passwd
hostPath:
path: /etc/passwd
- name: group
hostPath:
path: /etc/group
- name: hostroot
hostPath:
path: /
- name: hostlacework
hostPath:
path: /var/lib/lacework/collector
- name: cfgmap
configMap:
name: lacework-config
items:
- key: config.json
path: config.json
- name: podinfo
downwardAPI:
items:
- path: "labels"
fieldRef:
fieldPath: metadata.labels
- path: "annotations"
fieldRef:
fieldPath: metadata.annotations