-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemonset.yaml
40 lines (39 loc) · 956 Bytes
/
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: auditd
spec:
selector:
matchLabels:
name: auditd
template:
metadata:
labels:
name: auditd
spec:
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
hostPID: true
hostIPC: true
containers:
- name: auditd
securityContext:
privileged: true
capabilities:
add:
- CAP_AUDIT_CONTROL
- CAP_AUDIT_READ
- CAP_AUDIT_WRITE
- CAP_SYS_NICE
image: ghcr.io/appvia/auditd-container:latest
# args: ['sh', '-c', 'apk add --no-cache audit && auditd -n']
volumeMounts:
- mountPath: /var/log/audit
name: auditlog
volumes:
- hostPath:
path: /var/log/audit
type: DirectoryOrCreate
name: auditlog