-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclamav-daemonset.yaml
56 lines (56 loc) · 1.29 KB
/
clamav-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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: clamav
labels:
k8s-app: clamav-host-scanner
namespace: clamav-scanner
spec:
selector:
matchLabels:
name: clamav
template:
metadata:
labels:
name: clamav
spec:
nodeSelector:
node-role.kubernetes.io/worker: ""
containers:
- name: clamav-scanner
image: image-registry.openshift-image-registry.svc:5000/clamav-scanner/clamav:1.0.0
resources:
limits:
cpu: 1Gi
memory: 3Gi
requests:
cpu: 500m
memory: 2Gi
securityContext:
privileged: true
volumeMounts:
- name: data-vol
mountPath: /data
- name: host-fs
mountPath: /host-fs
readOnly: true
- name: logs
mountPath: /logs
livenessProbe:
exec:
command:
- /health.sh
initialDelaySeconds: 60
periodSeconds: 30
terminationGracePeriodSeconds: 30
volumes:
- name: data-vol
emptyDir: {}
- name: host-fs
hostPath:
path: /var/lib/kubelet/pods
- name: logs
hostPath:
path: /var/log/clamav
serviceAccount: clamav-sa
serviceAccountName: clamav-sa