From 5d738bd9e795626c1c5dec29d7b5b9899d02fde9 Mon Sep 17 00:00:00 2001 From: Justin Sievenpiper Date: Thu, 27 Jan 2022 15:20:49 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20make=20protocol=20selection=20wo?= =?UTF-8?q?rk=20with=20istio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/deployment.yaml | 2 +- templates/service.yaml | 2 +- templates/servicemonitor.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index ecc98e2..864b2d1 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -60,7 +60,7 @@ spec: - containerPort: 5000 {{- if .Values.metrics.enabled }} - containerPort: {{ (split ":" .Values.configData.http.debug.addr)._1 }} - name: metrics + name: http-metrics protocol: TCP {{- end }} livenessProbe: diff --git a/templates/service.yaml b/templates/service.yaml index c0a5487..cc9c5d8 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -41,7 +41,7 @@ spec: {{- if .Values.metrics.enabled }} - port: {{ .Values.metrics.port }} protocol: TCP - name: metrics + name: http-metrics targetPort: {{ (split ":" .Values.configData.http.debug.addr)._1 }} {{- end }} selector: diff --git a/templates/servicemonitor.yaml b/templates/servicemonitor.yaml index 1d7b760..ece2160 100644 --- a/templates/servicemonitor.yaml +++ b/templates/servicemonitor.yaml @@ -16,6 +16,6 @@ spec: release: {{ .Release.Name }} heritage: {{ .Release.Service }} endpoints: - - port: metrics + - port: http-metrics interval: 15s {{- end }}