forked from pyToshka/docker-wazuh-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wazuh-daemonset.yaml
133 lines (132 loc) · 3.34 KB
/
wazuh-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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: wazuh-agent
namespace: wazuh
spec:
selector:
matchLabels:
app: wazuh-agent
template:
metadata:
labels:
app: wazuh-agent
name: wazuh-agent
spec:
hostPID: true
hostIPC: true
containers:
- name: wazuh-agent
image: kennyopennix/wazuh-agent:latest
livenessProbe:
httpGet:
path: /healz
port: 5000
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 3
ports:
- name: agent-http
containerPort: 5000
protocol: TCP
imagePullPolicy: Always
securityContext:
privileged: true
resources:
limits:
memory: 512Mi
env:
- name: JOIN_MANAGER
value: "wazuh.wazuh.svc.cluster.local"
- name: JOIN_MANAGER_MASTER_HOST
value: "wazuh.wazuh.svc.cluster.local"
- name: JOIN_MANAGER_WORKER_HOST
value: "wazuh-workers.wazuh.svc.cluster.local"
- name: JOIN_MANAGER_PROTOCOL
value: "https"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: WAZUH_GROUPS
value: default
- name: JOIN_PASSWORD
value: password
- name: JOIN_MANAGER_USER
valueFrom:
secretKeyRef:
name: wazuh-api-cred
key: username
- name: JOIN_MANAGER_PASSWORD
valueFrom:
secretKeyRef:
name: wazuh-api-cred
key: password
- name: JOIN_MANAGER_API_PORT
value: "55000"
- name: JOIN_MANAGER_PORT
value: "1514"
- name: HEALTH_CHECK_PROCESSES
value: "ossec-execd,ossec-syscheckd,ossec-logcollector,wazuh-modulesd,ossec-authd"
volumeMounts:
- mountPath: /var/run
name: var-run
- mountPath: /host/dev
name: dev
- mountPath: /host/sys
name: sys
readOnly: true
- mountPath: /host/proc
name: proc
readOnly: true
- mountPath: /host/etc
name: etc
readOnly: true
- mountPath: /var/run/docker.sock
name: docker-socket-mount
- mountPath: /host/var/run/docker.sock
name: docker-socket-mount
- mountPath: /host/boot
name: boot
readOnly: true
- mountPath: /host/usr
name: usr
readOnly: true
- mountPath: /host/lib/modules
name: modules
readOnly: true
- mountPath: /host/var/log
name: log
readOnly: true
volumes:
- name: docker-socket-mount
hostPath:
path: /var/run/docker.sock
- name: var-run
hostPath:
path: /var/run
- name: dev
hostPath:
path: /dev
- name: sys
hostPath:
path: /sys
- name: proc
hostPath:
path: /proc
- name: etc
hostPath:
path: /etc
- name: boot
hostPath:
path: /boot
- name: usr
hostPath:
path: /usr
- name: modules
hostPath:
path: /lib/modules
- name: log
hostPath:
path: /var/log