* feat(zabbix): rework * finish web * add some server vars * add agent * volume web * lots of rework * adjust persistence * identation * lint * fix few things * update common.yaml * lint * one more * lets begin one by one * fix typo * fix some potential empty value * fix java port * fix some more emty values * fix some ints in configmap and rename to frontend * Add a lower default * adjust some probes and fix configmap * add 2 hostpaths to zabbix agent * some more configmap fixes * increase some sizes * add probes * hmm * whops * disable this env * one more * remove passive and active servers * move somethings * test different user * enable java * enable snmp * enable webservice * add services and volumes * add javagw webservice and snmp questions * add agent questions and remove some that don't apply * add webui questions * add some server questions * add server questions * remove todos * rename to zabbix. as it;s not only the server
44 lines
1.9 KiB
Smarty
44 lines
1.9 KiB
Smarty
{{- define "zabbix.frontend" -}}
|
|
image: {{ .Values.frontendImage.repository }}:{{ .Values.frontendImage.tag }}
|
|
imagePullPolicy: {{ .Values.frontendImage.pullPolicy }}
|
|
securityContext:
|
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
|
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
|
|
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
|
|
envFrom:
|
|
- secretRef:
|
|
name: '{{ include "tc.common.names.fullname" . }}-common-secret'
|
|
- configMapRef:
|
|
name: '{{ include "tc.common.names.fullname" . }}-common-config'
|
|
- configMapRef:
|
|
name: '{{ include "tc.common.names.fullname" . }}-frontend-config'
|
|
ports:
|
|
- containerPort: {{ .Values.service.main.ports.main.targetPort }}
|
|
name: main
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: {{ .Values.service.main.ports.main.targetPort }}
|
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: {{ .Values.service.main.ports.main.targetPort }}
|
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
|
startupProbe:
|
|
httpGet:
|
|
path: /
|
|
port: {{ .Values.service.main.ports.main.targetPort }}
|
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
|
{{- end -}}
|