diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index 9a493d88b8..c8013b43b9 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.3.0 +version: 4.3.1 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/stable/redis/templates/networkpolicy.yaml b/stable/redis/templates/networkpolicy.yaml index 85718fb046..1bc97c229e 100644 --- a/stable/redis/templates/networkpolicy.yaml +++ b/stable/redis/templates/networkpolicy.yaml @@ -22,6 +22,13 @@ spec: - podSelector: matchLabels: {{ template "redis.fullname" . }}-client: "true" + {{- if .Values.metrics.enabled }} + - podSelector: + matchLabels: + release: "{{ .Release.Name }}" + role: metrics + app: {{ template "redis.name" . }} + {{- end }} {{- end }} {{- if .Values.metrics.enabled }} # Allow prometheus scrapes for metrics