-
Notifications
You must be signed in to change notification settings - Fork 1
/
zabbix-agent-daemonset.yaml.j2
executable file
·53 lines (53 loc) · 1.25 KB
/
zabbix-agent-daemonset.yaml.j2
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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: zabbix-agent
namespace: monitoring
labels:
k8s-app: zabbix-agent
kubernetes.io/cluster-service: "true"
spec:
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
k8s-app: zabbix-agent
kubernetes.io/cluster-service: "true"
spec:
tolerations:
- key: ""
operator: "Exists"
effect: "NoSchedule"
- key: ""
operator: "Exists"
effect: "NoExecute"
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
terminationGracePeriodSeconds: 30
containers:
- name: zabbix-agent
image: rossipan/kube-zabbix-exporter
env:
- name: ZBX_SERVER_HOST
value: {{ ZBX_SERVER_HOST }}
- name: ZBX_METADATA
value: {{ ZBX_METADATA }}
securityContext:
privileged: true
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: rootfs
mountPath: /rootfs
readOnly: true
volumes:
- name: rootfs
hostPath:
path: /
serviceAccountName: prometheus-k8s