-
Notifications
You must be signed in to change notification settings - Fork 31
/
zabbix-frontend.yaml
95 lines (91 loc) · 2.09 KB
/
zabbix-frontend.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: monitoring
creationTimestamp: null
labels:
zabbix-app: zabbix-server
name: zabbix-web-nginx-mysql
spec:
selector:
matchLabels:
zabbix-app: zabbix-server
serviceName: "zabbix-web-nginx-mysql"
replicas: 1
#strategy:
# type: Recreate
template:
metadata:
labels:
zabbix-app: zabbix-server
spec:
containers:
- env:
- name: MYSQL_DATABASE
valueFrom:
configMapKeyRef:
key: MYSQL_DATABASE
name: zabbix-app
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: MYSQL_ROOT_PASSWORD
name: zabbix-app
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: MYSQL_PASSWORD
name: zabbix-app
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: MYSQL_ROOT_PASSWORD
name: zabbix-app
- name: ZBX_SERVER_HOST
valueFrom:
configMapKeyRef:
key: ZBX_SERVER_HOST
name: zabbix-app
- name: ZBX_SERVER_NAME
valueFrom:
configMapKeyRef:
key: ZBX_SERVER_NAME
name: zabbix-app
image: zabbix/zabbix-web-nginx-mysql:ubuntu-4.4-latest
livenessProbe:
exec:
command:
- curl
- -f
- http://localhost
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
name: zabbix-web-nginx-mysql
ports:
- containerPort: 80
resources: {}
### Service
---
apiVersion: v1
kind: Service
metadata:
namespace: monitoring
annotations:
creationTimestamp: null
labels:
zabbix-app: zabbix-server
name: zabbix-web-nginx-mysql
spec:
ports:
- name: "8081"
port: 8081
targetPort: 80
- name: "8443"
port: 8443
targetPort: 443
selector:
zabbix-app: zabbix-server
status:
loadBalancer: {}