-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
kubernetes.yaml
1332 lines (1332 loc) · 43.9 KB
/
kubernetes.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
apiVersion: v1
kind: Namespace
metadata:
name: zabbix
labels:
name: zabbix
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: zabbix-agent
namespace: zabbix
rules:
- verbs:
- use
apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
resourceNames:
- privileged
- hostaccess
- hostnetwork
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: zabbix-agent
namespace: zabbix
subjects:
- kind: ServiceAccount
name: zabbix-agent
roleRef:
kind: Role
name: zabbix-agent
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: zabbix-agent
namespace: zabbix
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-web
labels:
app: zabbix
namespace: zabbix
spec:
ports:
- port: 80
targetPort: 8080
name: web-http
- port: 443
targetPort: 8443
name: web-https
selector:
name: zabbix-web
sessionAffinity: None
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: mysql-server
labels:
app: zabbix
tier: db
namespace: zabbix
spec:
ports:
- port: 3306
targetPort: 3306
name: mysql-server
selector:
name: mysql-server
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-server
labels:
app: zabbix
namespace: zabbix
spec:
ports:
- port: 10051
targetPort: 10051
name: zabbix-trapper
- port: 162
targetPort: 1162
protocol: UDP
name: snmp-trap
selector:
name: zabbix-server
sessionAffinity: None
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-proxy-sqlite3
labels:
app: zabbix
namespace: zabbix
spec:
ports:
- port: 10051
targetPort: 10051
name: zabbix-trapper
- port: 162
targetPort: 1162
protocol: UDP
name: snmp-trap
selector:
name: zabbix-proxy-sqlite3
sessionAffinity: None
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-proxy-mysql
labels:
app: zabbix
namespace: zabbix
spec:
ports:
- port: 10051
targetPort: 10051
name: zabbix-trapper
- port: 162
targetPort: 1162
protocol: UDP
name: snmp-trap
selector:
name: zabbix-proxy-mysql
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-java-gateway
labels:
app: zabbix
namespace: zabbix
spec:
ports:
- port: 10052
targetPort: 10052
name: zabbix-jmx
selector:
name: zabbix-java-gateway
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-web-service
labels:
app: zabbix
namespace: zabbix
spec:
ports:
- port: 10053
targetPort: 10053
name: zabbix-web-svc
selector:
name: zabbix-web-service
---
apiVersion: v1
kind: Service
metadata:
name: zabbix-agent
labels:
app: zabbix
namespace: zabbix
spec:
ports:
- port: 10050
targetPort: 10050
name: zabbix-agent
selector:
name: zabbix-agent
---
apiVersion: v1
kind: ReplicationController
metadata:
name: zabbix-web
labels:
app: zabbix
tier: zabbix-web
namespace: zabbix
spec:
replicas: 2
template:
metadata:
labels:
name: zabbix-web
app: zabbix
spec:
volumes:
- name: mysql-tls-certs
secret:
secretName: zabbix-mysql-client-tls-certs
containers:
- name: zabbix-web
image: zabbix/zabbix-web-nginx-mysql:alpine-7.0-latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: web-http
- containerPort: 8443
name: web-https
resources:
limits:
cpu: 200m
memory: 400Mi
requests:
cpu: 200m
memory: 400Mi
livenessProbe:
httpGet:
path: /
port: web-http
scheme: HTTP
initialDelaySeconds: 15
timeoutSeconds: 2
periodSeconds: 10
successThreshold: 1
failureThreshold: 5
readinessProbe:
httpGet:
path: /
port: web-http
scheme: HTTP
initialDelaySeconds: 15
timeoutSeconds: 2
periodSeconds: 10
successThreshold: 1
failureThreshold: 5
env:
- name: ZBX_SERVER_NAME
value: "Zabbix Kubernetes"
- name: PHP_TZ
value: "Europe/Riga"
- name: DB_SERVER_HOST
value: "mysql-server"
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-pass
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-root-pass
- name: MYSQL_DATABASE
value: "zabbix"
- name: ZBX_DB_ENCRYPTION
value: "true"
- name: ZBX_DB_CA_FILE
value: "/tmp/secrets/root-ca.pem"
- name: ZBX_DB_CERT_FILE
value: "/tmp/secrets/client-cert.pem"
- name: ZBX_DB_KEY_FILE
value: "/tmp/secrets/client-key.pem"
- name: ZBX_DB_VERIFY_HOST
value: "false"
- name: ZBX_DB_CIPHER_LIST
value: ""
# - name: ZBX_HISTORYSTORAGEURL
# value: ""
# - name: ZBX_HISTORYSTORAGETYPES
# value: ""
# - name: ZBX_MAXEXECUTIONTIME
# value: ""
# - name: ZBX_MEMORYLIMIT
# value: ""
# - name: ZBX_POSTMAXSIZE
# value: ""
# - name: ZBX_UPLOADMAXFILESIZE
# value: ""
# - name: ZBX_MAXINPUTTIME
# value: ""
# - name: ZBX_SESSION_NAME
# value: ""
# - name: DB_DOUBLE_IEEE754
# value: "true"
- name: ZBX_SSO_SETTINGS
value: "[]"
- name: ENABLE_WEB_ACCESS_LOG
value: "true"
- name: DEBUG_MODE
value: "false"
volumeMounts:
- mountPath: "/tmp/secrets"
name: mysql-tls-certs
readOnly: true
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql-server
labels:
app: zabbix
tier: mysql-server
namespace: zabbix
spec:
strategy:
type: Recreate
selector:
matchLabels:
name: mysql-server
app: zabbix
tier: mysql-server
template:
metadata:
labels:
name: mysql-server
app: zabbix
tier: mysql-server
spec:
volumes:
- name: zabbix-mysql-data
persistentVolumeClaim:
claimName: zabbix-mysql-data-claim
- name: mysql-tls-certs
secret:
secretName: zabbix-mysql-server-tls-certs
containers:
- name: zabbix-db
image: mysql:8.0-oracle
args:
- mysqld
- --character-set-server=utf8
- --collation-server=utf8_bin
- --default-authentication-plugin=mysql_native_password
- --require-secure-transport
- --ssl-ca=/tmp/secrets/root-ca.pem
- --ssl-cert=/tmp/secrets/server-cert.pem
- --ssl-key=/tmp/secrets/server-key.pem
- --tls-version=TLSv1.2,TLSv1.3
ports:
- containerPort: 3306
name: mysql
livenessProbe:
exec:
command: ["bash", "-c", "mysqladmin -u root -p$MYSQL_ROOT_PASSWORD ping"]
timeoutSeconds: 3
failureThreshold: 3
periodSeconds: 10
startupProbe:
exec:
command: ["bash", "-c", "mysql -u root -p$MYSQL_ROOT_PASSWORD -e 'SELECT 1'"]
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 30
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-pass
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-root-pass
- name: MYSQL_DATABASE
value: "zabbix"
volumeMounts:
- mountPath: "/var/lib/mysql"
name: zabbix-mysql-data
readOnly: false
- mountPath: "/tmp/secrets"
name: mysql-tls-certs
readOnly: true
securityContext:
capabilities: {}
privileged: false
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zabbix-server
labels:
app: zabbix
tier: server
environment: dev
namespace: zabbix
spec:
strategy:
type: Recreate
rollingUpdate: null
selector:
matchLabels:
name: zabbix-server
app: zabbix
template:
metadata:
labels:
name: zabbix-server
app: zabbix
spec:
volumes:
- name: zabbix-snmptraps
emptyDir: {}
- name: mysql-tls-certs
secret:
secretName: zabbix-mysql-client-tls-certs
containers:
- name: zabbix-server
image: zabbix/zabbix-server-mysql:alpine-7.0-latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 10051
protocol: TCP
name: zabbix-trapper
readinessProbe:
tcpSocket:
port: zabbix-trapper
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: zabbix-trapper
initialDelaySeconds: 15
periodSeconds: 20
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-pass
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-root-pass
- name: MYSQL_DATABASE
value: "zabbix"
- name: ZBX_DBTLSCONNECT
value: "required"
- name: ZBX_DBTLSCAFILE
value: "/tmp/secrets/root-ca.pem"
- name: ZBX_DBTLSCERTFILE
value: "/tmp/secrets/client-cert.pem"
- name: ZBX_DBTLSKEYFILE
value: "/tmp/secrets/client-key.pem"
- name: ZBX_DBTLSCIPHER
value: ""
- name: ZBX_DBTLSCIPHER13
value: ""
- name: ZBX_HISTORYSTORAGEURL
value: ""
- name: ZBX_HISTORYSTORAGETYPES
value: ""
- name: ZBX_HISTORYSTORAGEDATEINDEX
value: "1"
- name: ZBX_STARTREPORTWRITERS
value: "3"
- name: ZBX_WEBSERVICEURL
value: "http://zabbix-web-service:10053/report"
- name: ZBX_DEBUGLEVEL
value: "3"
- name: ZBX_STARTPOLLERS
value: ""
- name: ZBX_STARTPREPROCESSORS
value: ""
- name: ZBX_STARTPOLLERSUNREACHABLE
value: ""
- name: ZBX_STARTTRAPPERS
value: ""
- name: ZBX_STARTPINGERS
value: ""
- name: ZBX_STARTDISCOVERERS
value: ""
- name: ZBX_STARTHTTPPOLLERS
value: ""
- name: ZBX_STARTIPMIPOLLERS
value: ""
- name: ZBX_STARTTIMERS
value: ""
- name: ZBX_STARTESCALATORS
value: ""
- name: ZBX_STARTALERTERS
value: ""
- name: ZBX_JAVAGATEWAY_ENABLE
value: "true"
- name: ZBX_JAVAGATEWAY
value: "zabbix-java-gateway"
- name: ZBX_JAVAGATEWAYPORT
value: "10052"
- name: ZBX_STARTJAVAPOLLERS
value: "5"
- name: ZBX_STARTLLDPROCESSORS
value: ""
- name: ZBX_STATSALLOWEDIP
value: ""
- name: ZBX_STARTVMWARECOLLECTORS
value: ""
- name: ZBX_VMWAREFREQUENCY
value: ""
- name: ZBX_VMWAREPERFFREQUENCY
value: ""
- name: ZBX_VMWARECACHESIZE
value: ""
- name: ZBX_VMWARETIMEOUT
value: ""
- name: ZBX_ENABLE_SNMP_TRAPS
value: "true"
- name: ZBX_HOUSEKEEPINGFREQUENCY
value: ""
- name: ZBX_MAXHOUSEKEEPERDELETE
value: ""
- name: ZBX_CACHESIZE
value: ""
- name: ZBX_CACHEUPDATEFREQUENCY
value: ""
- name: ZBX_STARTDBSYNCERS
value: ""
- name: ZBX_HISTORYCACHESIZE
value: ""
- name: ZBX_HISTORYINDEXCACHESIZE
value: ""
- name: ZBX_TRENDCACHESIZE
value: ""
- name: ZBX_VALUECACHESIZE
value: ""
- name: ZBX_TIMEOUT
value: "4"
- name: ZBX_TRAPPERIMEOUT
value: ""
- name: ZBX_UNREACHABLEPERIOD
value: ""
- name: ZBX_UNAVAILABLEDELAY
value: ""
- name: ZBX_UNREACHABLEDELAY
value: ""
- name: ZBX_LOGSLOWQUERIES
value: "3000"
- name: ZBX_STARTPROXYPOLLERS
value: ""
- name: ZBX_PROXYCONFIGFREQUENCY
value: ""
- name: ZBX_PROXYDATAFREQUENCY
value: ""
- name: ZBX_EXPORTFILESIZE
value: ""
- name: ZBX_LOADMODULE
value: ""
- name: ZBX_TLSCAFILE
value: ""
- name: ZBX_TLSCRLFILE
value: ""
- name: ZBX_TLSCERTFILE
value: ""
- name: ZBX_TLSKEYFILE
value: ""
- name: ZBX_TLSCIPHERALL
value: ""
- name: ZBX_TLSCIPHERALL13
value: ""
- name: ZBX_TLSCIPHERCERT
value: ""
- name: ZBX_TLSCIPHERCERT13
value: ""
- name: ZBX_TLSCIPHERPSK
value: ""
- name: ZBX_TLSCIPHERPSK13
value: ""
- name: DEBUG_MODE
value: "false"
volumeMounts:
- name: zabbix-snmptraps
mountPath: "/var/lib/zabbix/snmptraps"
readOnly: true
- mountPath: "/tmp/secrets"
name: mysql-tls-certs
readOnly: true
startupProbe:
tcpSocket:
port: 10051
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 40
securityContext:
capabilities: {}
privileged: false
- name: zabbix-snmptraps
image: zabbix/zabbix-snmptraps:alpine-7.0-latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 1162
protocol: UDP
name: snmp-trap
volumeMounts:
- name: zabbix-snmptraps
mountPath: /var/lib/zabbix/snmptraps/
readOnly: false
securityContext:
capabilities: {}
privileged: false
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zabbix-proxy-sqlite3
labels:
app: zabbix
tier: proxy
namespace: zabbix
spec:
strategy:
type: Recreate
rollingUpdate: null
selector:
matchLabels:
name: zabbix-proxy-sqlite3
app: zabbix
template:
metadata:
labels:
name: zabbix-proxy-sqlite3
app: zabbix
spec:
volumes:
- name: proxy-sqlite-data
emptyDir: {}
containers:
- name: zabbix-proxy-sqlite3
image: zabbix/zabbix-proxy-sqlite3:alpine-7.0-latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 10051
protocol: TCP
name: zabbix-trapper
startupProbe:
tcpSocket:
port: 10051
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 40
livenessProbe:
tcpSocket:
port: 10051
timeoutSeconds: 3
failureThreshold: 3
periodSeconds: 10
env:
- name: ZBX_PROXYMODE
value: "1"
- name: ZBX_SERVER_HOST
value: ""
- name: ZBX_SERVER_PORT
value: ""
- name: ZBX_HOSTNAME
value: "zabbix-proxy-sqlite"
- name: ZBX_ENABLEREMOTECOMMANDS
value: "0"
- name: ZBX_LOGREMOTECOMMANDS
value: "1"
- name: ZBX_HOSTNAMEITEM
value: ""
- name: ZBX_DEBUGLEVEL
value: "3"
- name: ZBX_PROXYLOCALBUFFER
value: ""
- name: ZBX_PROXYOFFLINEBUFFER
value: ""
- name: ZBX_STARTPOLLERS
value: ""
- name: ZBX_STARTIPMIPOLLERS
value: ""
- name: ZBX_STARTPOLLERSUNREACHABLE
value: ""
- name: ZBX_STARTTRAPPERS
value: ""
- name: ZBX_STARTPINGERS
value: ""
- name: ZBX_STARTDISCOVERERS
value: ""
- name: ZBX_STARTHTTPPOLLERS
value: ""
- name: ZBX_JAVAGATEWAY_ENABLE
value: "true"
- name: ZBX_JAVAGATEWAY
value: "zabbix-java-gateway"
- name: ZBX_JAVAGATEWAYPORT
value: "10052"
- name: ZBX_STARTJAVAPOLLERS
value: "5"
- name: ZBX_STARTVMWARECOLLECTORS
value: ""
- name: ZBX_VMWAREFREQUENCY
value: ""
- name: ZBX_VMWAREPERFFREQUENCY
value: ""
- name: ZBX_VMWARECACHESIZE
value: ""
- name: ZBX_VMWARETIMEOUT
value: ""
- name: ZBX_HOUSEKEEPINGFREQUENCY
value: ""
- name: ZBX_CACHESIZE
value: ""
- name: ZBX_STARTDBSYNCERS
value: ""
- name: ZBX_HISTORYCACHESIZE
value: ""
- name: ZBX_HISTORYINDEXCACHESIZE
value: ""
- name: ZBX_TIMEOUT
value: "4"
- name: ZBX_TRAPPERIMEOUT
value: ""
- name: ZBX_UNREACHABLEPERIOD
value: ""
- name: ZBX_UNAVAILABLEDELAY
value: ""
- name: ZBX_UNREACHABLEDELAY
value: ""
- name: ZBX_LOGSLOWQUERIES
- name: ZBX_LOADMODULE
value: ""
- name: ZBX_TLSCONNECT
value: ""
- name: ZBX_TLSACCEPT
value: ""
- name: ZBX_TLSCAFILE
value: ""
- name: ZBX_TLSCRLFILE
value: ""
- name: ZBX_TLSSERVERCERTISSUER
value: ""
- name: ZBX_TLSSERVERCERTSUBJECT
value: ""
- name: ZBX_TLSCERTFILE
value: ""
- name: ZBX_TLSKEYFILE
value: ""
- name: ZBX_TLSPSKIDENTITY
value: ""
- name: ZBX_TLSPSKFILE
value: ""
- name: ZBX_TLSCIPHERALL
value: ""
- name: ZBX_TLSCIPHERALL13
value: ""
- name: ZBX_TLSCIPHERCERT
value: ""
- name: ZBX_TLSCIPHERCERT13
value: ""
- name: ZBX_TLSCIPHERPSK
value: ""
- name: ZBX_TLSCIPHERPSK13
value: ""
- name: DEBUG_MODE
value: "false"
volumeMounts:
- mountPath: "/var/lib/zabbix/db_data"
name: proxy-sqlite-data
securityContext:
capabilities: {}
privileged: false
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zabbix-proxy-mysql
labels:
app: zabbix
tier: proxy
namespace: zabbix
spec:
strategy:
type: Recreate
rollingUpdate: null
selector:
matchLabels:
name: zabbix-proxy-mysql
app: zabbix
template:
metadata:
labels:
name: zabbix-proxy-mysql
app: zabbix
spec:
volumes:
- name: mysql-tls-certs
secret:
secretName: zabbix-mysql-client-tls-certs
containers:
- name: zabbix-proxy-mysql
image: zabbix/zabbix-proxy-mysql:alpine-7.0-latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 10051
protocol: TCP
name: zabbix-trapper
readinessProbe:
tcpSocket:
port: zabbix-trapper
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: zabbix-trapper
initialDelaySeconds: 15
periodSeconds: 20
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-zbx-pass
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: db-root-pass
- name: MYSQL_DATABASE
value: "zabbix_proxy"
- name: ZBX_DBTLSCONNECT
value: "required"
- name: ZBX_DBTLSCAFILE
value: "/tmp/secrets/root-ca.pem"
- name: ZBX_DBTLSCERTFILE
value: "/tmp/secrets/client-cert.pem"
- name: ZBX_DBTLSKEYFILE
value: "/tmp/secrets/client-key.pem"
- name: ZBX_DBTLSCIPHER
value: ""
- name: ZBX_DBTLSCIPHER13
value: ""
- name: ZBX_PROXYMODE
value: "0"
- name: ZBX_SERVER_HOST
value: "zabbix-server"
- name: ZBX_SERVER_PORT
value: "10051"
- name: ZBX_HOSTNAME
value: "zabbix-proxy-mysql"
- name: ZBX_ENABLEREMOTECOMMANDS
value: "0"
- name: ZBX_LOGREMOTECOMMANDS
value: "1"
- name: ZBX_HOSTNAMEITEM
value: ""
- name: ZBX_DEBUGLEVEL
value: "3"
- name: ZBX_PROXYLOCALBUFFER
value: ""
- name: ZBX_PROXYOFFLINEBUFFER
value: ""
- name: ZBX_PROXYCONFIGFREQUENCY
value: ""
- name: ZBX_DATASENDERFREQUENCY
value: ""
- name: ZBX_STARTPOLLERS
value: ""
- name: ZBX_STARTIPMIPOLLERS
value: ""
- name: ZBX_STARTPOLLERSUNREACHABLE
value: ""
- name: ZBX_STARTTRAPPERS
value: ""
- name: ZBX_STARTPINGERS
value: ""
- name: ZBX_STARTDISCOVERERS
value: ""
- name: ZBX_STARTHTTPPOLLERS
value: ""
- name: ZBX_JAVAGATEWAY_ENABLE
value: "true"
- name: ZBX_JAVAGATEWAY
value: "zabbix-java-gateway"
- name: ZBX_JAVAGATEWAYPORT
value: "10052"
- name: ZBX_STARTJAVAPOLLERS
value: "5"
- name: ZBX_STARTVMWARECOLLECTORS
value: ""
- name: ZBX_VMWAREFREQUENCY
value: ""
- name: ZBX_VMWAREPERFFREQUENCY
value: ""
- name: ZBX_VMWARECACHESIZE
value: ""
- name: ZBX_VMWARETIMEOUT
value: ""
- name: ZBX_HOUSEKEEPINGFREQUENCY
value: ""
- name: ZBX_CACHESIZE
value: ""
- name: ZBX_STARTDBSYNCERS
value: ""
- name: ZBX_HISTORYCACHESIZE
value: ""
- name: ZBX_HISTORYINDEXCACHESIZE
value: ""
- name: ZBX_TIMEOUT
value: "4"
- name: ZBX_TRAPPERIMEOUT
value: ""
- name: ZBX_UNREACHABLEPERIOD
value: ""
- name: ZBX_UNAVAILABLEDELAY
value: ""
- name: ZBX_UNREACHABLEDELAY
value: ""
- name: ZBX_LOGSLOWQUERIES
value: ""
- name: ZBX_LOADMODULE
value: ""
- name: ZBX_TLSCONNECT
value: ""
- name: ZBX_TLSACCEPT
value: ""
- name: ZBX_TLSCAFILE
value: ""
- name: ZBX_TLSCRLFILE
value: ""
- name: ZBX_TLSSERVERCERTISSUER
value: ""
- name: ZBX_TLSSERVERCERTSUBJECT
value: ""
- name: ZBX_TLSCERTFILE
value: ""
- name: ZBX_TLSKEYFILE
value: ""
- name: ZBX_TLSPSKIDENTITY
value: ""
- name: ZBX_TLSPSKFILE
value: ""
- name: ZBX_TLSCIPHERALL
value: ""
- name: ZBX_TLSCIPHERALL13
value: ""
- name: ZBX_TLSCIPHERCERT
value: ""
- name: ZBX_TLSCIPHERCERT13
value: ""
- name: ZBX_TLSCIPHERPSK
value: ""
- name: ZBX_TLSCIPHERPSK13
value: ""
- name: DEBUG_MODE
value: "false"
volumeMounts:
- mountPath: "/tmp/secrets"
name: mysql-tls-certs
readOnly: true
securityContext:
capabilities: {}
privileged: false
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zabbix-java-gateway
labels:
app: zabbix
tier: java
namespace: zabbix
spec:
selector:
matchLabels:
name: zabbix-java-gateway
app: zabbix
template:
metadata:
labels:
name: zabbix-java-gateway
app: zabbix