Skip to content

Commit

Permalink
Merge pull request #131 from fibbs/node_address
Browse files Browse the repository at this point in the history
set ZBX_NODEADDRESS of zabbix server pod even with HA mode disabled
  • Loading branch information
fibbs authored Nov 27, 2024
2 parents 01fb43c + d580f2c commit bab390c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/zabbix/templates/deployment-zabbix-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ spec:
{{- if .Values.zabbixServer.zabbixServerHA.enabled }}
- name: ZBX_AUTOHANODENAME
value: "hostname"
{{- end }}
- name: ZBX_NODEADDRESS
valueFrom:
fieldRef:
fieldPath: status.podIP
{{- end }}
{{- if .Values.zabbixWebService.enabled }}
- name: ZBX_WEBSERVICEURL
value: "http://{{ template "zabbix.fullname" . }}-zabbix-webservice:{{ .Values.zabbixWebService.service.port }}/report"
Expand Down

0 comments on commit bab390c

Please sign in to comment.