[stable/redis-ha] define prometheus exporter port in service (#14910)

* define prometheus exporter port in service

This enables prometheus-operator to work with this chart almost out-of-the box. Only a ServiceMonitor definition is necessary.

Signed-off-by: Ben Dimbeck <bd@it-agenten.com>

* bump chart version

Signed-off-by: Ben Dimbeck <bd@it-agenten.com>
This commit is contained in:
residualmind
2019-06-26 13:37:20 -07:00
committed by Kubernetes Prow Robot
parent 4243f59270
commit 4cbc02a65f
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ keywords:
- redis
- keyvalue
- database
version: 3.5.0
version: 3.5.1
appVersion: 5.0.3
description: Highly available Kubernetes implementation of Redis
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png
@@ -20,6 +20,12 @@ spec:
port: {{ .Values.sentinel.port }}
protocol: TCP
targetPort: sentinel
{{- if .Values.exporter.enabled }}
- name: exporter-port
port: {{ .Values.exporter.port }}
protocol: TCP
targetPort: exporter-port
{{- end }}
selector:
release: {{ .Release.Name }}
app: {{ template "redis-ha.name" . }}