Nagios: Configure ports with endpoint port lookups
This ps updates the nagios chart to use endpoint port lookups for port configuration, bringing it in line with the other charts Change-Id: I500b4741d50132f6c316ded660981e2af8b71e7a
This commit is contained in:
parent
37de340600
commit
1ebce2424e
@ -87,7 +87,7 @@ spec:
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.nagios | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: {{ .Values.network.nagios.port }}
|
||||
containerPort: {{ tuple "nagios" "internal" "nagios" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
env:
|
||||
- name: PROMETHEUS_SERVICE
|
||||
value: {{ tuple "monitoring" "internal" "api" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
|
||||
|
@ -23,8 +23,8 @@ metadata:
|
||||
name: {{ tuple "nagios" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||
spec:
|
||||
ports:
|
||||
- name: nagios-metrics
|
||||
port: {{ .Values.network.nagios.port }}
|
||||
- name: metrics
|
||||
port: {{ tuple "nagios" "internal" "nagios" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
{{ if .Values.network.nagios.node_port.enabled }}
|
||||
nodePort: {{ .Values.network.nagios.node_port.port }}
|
||||
{{ end }}
|
||||
|
@ -99,7 +99,6 @@ network:
|
||||
node_port:
|
||||
enabled: false
|
||||
port: 30925
|
||||
port: 25
|
||||
|
||||
pod:
|
||||
lifecycle:
|
||||
|
Loading…
Reference in New Issue
Block a user