Add ability to set the domain name in the Nagios chart
This allows the ability to set the domain name in the Nagios deployment. This change goes along with a change to imageswhich will allow the ability to append the domain name to the host name in Nagios so the full FQDN appears in the dashboard. Change-Id: I512112921111e49345f19dfca70406b56dd55452
This commit is contained in:
parent
e1b6de9218
commit
3b7227b393
@ -108,6 +108,10 @@ spec:
|
|||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
- name: nagios-confd
|
- name: nagios-confd
|
||||||
mountPath: /opt/nagios/etc/conf.d
|
mountPath: /opt/nagios/etc/conf.d
|
||||||
|
env:
|
||||||
|
{{- if .Values.pod.env }}
|
||||||
|
{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.pod.env | indent 12 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: apache-proxy
|
- name: apache-proxy
|
||||||
{{ tuple $envAll "apache_proxy" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "apache_proxy" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
@ -160,6 +164,9 @@ spec:
|
|||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
env:
|
env:
|
||||||
|
{{- if .Values.pod.env }}
|
||||||
|
{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.pod.env | indent 12 }}
|
||||||
|
{{- end }}
|
||||||
- name: SNMP_NOTIF_PRIMARY_TARGET_WITH_PORT
|
- name: SNMP_NOTIF_PRIMARY_TARGET_WITH_PORT
|
||||||
value: {{ $envAll.Values.conf.nagios.notification.snmp.primary_target }}
|
value: {{ $envAll.Values.conf.nagios.notification.snmp.primary_target }}
|
||||||
- name: SNMP_NOTIF_SECONDARY_TARGET_WITH_PORT
|
- name: SNMP_NOTIF_SECONDARY_TARGET_WITH_PORT
|
||||||
|
@ -238,6 +238,14 @@ pod:
|
|||||||
termination_grace_period:
|
termination_grace_period:
|
||||||
nagios:
|
nagios:
|
||||||
timeout: 30
|
timeout: 30
|
||||||
|
#env:
|
||||||
|
#
|
||||||
|
# NOTE(megheisler): This value can be used to hold
|
||||||
|
# the domain name. Functionality has been added in
|
||||||
|
# plugins to append the domain to the host name in
|
||||||
|
# the nagios dashboard
|
||||||
|
#
|
||||||
|
# NODE_DOMAIN:
|
||||||
replicas:
|
replicas:
|
||||||
nagios: 1
|
nagios: 1
|
||||||
resources:
|
resources:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user