From 1ebce2424ed83e7f1c5bdab9b21cc3ffbf71f647 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Mon, 2 Apr 2018 09:30:39 -0500 Subject: [PATCH] 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 --- nagios/templates/deployment.yaml | 2 +- nagios/templates/service.yaml | 4 ++-- nagios/values.yaml | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/nagios/templates/deployment.yaml b/nagios/templates/deployment.yaml index 2187121c16..53a8ced088 100644 --- a/nagios/templates/deployment.yaml +++ b/nagios/templates/deployment.yaml @@ -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" }} diff --git a/nagios/templates/service.yaml b/nagios/templates/service.yaml index 20c586b3fc..e878871fe0 100644 --- a/nagios/templates/service.yaml +++ b/nagios/templates/service.yaml @@ -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 }} diff --git a/nagios/values.yaml b/nagios/values.yaml index b49d0e01df..ab62838fd3 100644 --- a/nagios/values.yaml +++ b/nagios/values.yaml @@ -99,7 +99,6 @@ network: node_port: enabled: false port: 30925 - port: 25 pod: lifecycle: