-
Notifications
You must be signed in to change notification settings - Fork 82
/
dockbix-all-in-one-gke.yaml
156 lines (156 loc) · 3.08 KB
/
dockbix-all-in-one-gke.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
apiVersion: v1
kind: Service
metadata:
name: zabbix-web
labels:
app: zabbix
spec:
ports:
- port: 80
targetPort: 80
selector:
name: zabbix-web
type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-db
labels:
app: zabbix
tier: db
spec:
ports:
- port: 3306
targetPort: 3306
name: zabbix-db
selector:
name: zabbix-db
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-server
labels:
app: zabbix
spec:
ports:
- port: 10051
targetPort: 10051
name: zabbix-trapper
- port: 10052
targetPort: 10052
name: zabbix-jmx
selector:
name: zabbix-server
---
apiVersion: v1
kind: ReplicationController
metadata:
name: zabbix-web
labels:
app: zabbix
tier: frontend
spec:
replicas: 3
template:
metadata:
labels:
name: zabbix-web
app: zabbix
spec:
containers:
- name: zabbix-web
image: monitoringartist/dockbix-xxl:latest
ports:
- containerPort: 80
env:
- name: ZS_DBUser
value: zabbix
- name: ZS_DBPassword
value: my_password
- name: ZS_DBHost
value: zabbix-db
- name: ZW_ZBX_SERVER
value: zabbix-server
- name: ZS_enabled
value: "false"
- name: ZA_enabled
value: "false"
- name: ZW_enabled
value: "true"
---
apiVersion: v1
kind: ReplicationController
metadata:
name: zabbix-db
labels:
app: zabbix
tier: zabbix-db
spec:
replicas: 1
template:
metadata:
labels:
name: zabbix-db
app: zabbix
tier: zabbix-db
spec:
containers:
- name: zabbix-db
image: monitoringartist/zabbix-db-mariadb
ports:
- containerPort: 3306
name: mariadb
env:
- name: MARIADB_USER
value: zabbix
- name: MARIADB_PASS
value: my_password
volumeMounts:
- name: zabbix-db-storage
mountPath: /var/lib/mysql
volumes:
- name: zabbix-db-storage
emptyDir:
medium: Memory
---
apiVersion: v1
kind: ReplicationController
metadata:
name: zabbix-server
labels:
app: zabbix
spec:
replicas: 1
template:
metadata:
labels:
name: zabbix-server
app: zabbix
spec:
containers:
- name: zabbix-server
image: monitoringartist/dockbix-xxl:latest
ports:
- containerPort: 162
name: snmptrapd
- containerPort: 10051
name: zabbix-trapper
- containerPort: 10052
name: zabbix-jmx
env:
- name: ZS_DBUser
value: zabbix
- name: ZS_DBPassword
value: my_password
- name: ZS_DBHost
value: zabbix-db
- name: ZS_enabled
value: "true"
- name: ZA_enabled
value: "true"
- name: ZW_enabled
value: "false"
- name: SNMPTRAP_enabled
value: "true"