[bitnami/redis] Fix for NetworkPolicy blocking sentinel metrics exporter (#6050)

* Fix for NetworkPolicy blocking sentinel metrics exporter

When sentinel metrics exporter is enabled, that metrics port needs to be added to the network policy

* inc chart version

* Fixed port to not be hard coded
This commit is contained in:
Eran Kampf
2021-04-09 02:52:05 -07:00
committed by GitHub
parent e819027fd2
commit 7c48ded7b6
2 changed files with 6 additions and 1 deletions

View File

@@ -25,4 +25,4 @@ name: redis
sources:
- https://github.com/bitnami/bitnami-docker-redis
- http://redis.io/
version: 13.0.0
version: 13.0.1

View File

@@ -71,4 +71,9 @@ spec:
- ports:
- port: 9121
{{- end }}
{{- if .Values.sentinel.metrics.enabled }}
# Allow prometheus scrapes for sentinel metrics
- ports:
- port: {{ .Values.sentinel.metrics.service.port }}
{{- end }}
{{- end }}