diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index edecf3be6c..92f65285bb 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: redis -version: 7.0.2 +version: 7.0.3 appVersion: 4.0.14 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 a9bc238a27..a77af3d51f 100644 --- a/stable/redis/templates/networkpolicy.yaml +++ b/stable/redis/templates/networkpolicy.yaml @@ -17,23 +17,9 @@ spec: # Allow inbound connections - ports: - port: {{ .Values.redisPort }} - {{- if not .Values.networkPolicy.allowExternal }} - from: - - 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.sentinel.enabled }} - - ports: + {{- if .Values.sentinel.enabled }} - port: {{ .Values.sentinel.port }} + {{- end }} {{- if not .Values.networkPolicy.allowExternal }} from: - podSelector: @@ -45,24 +31,11 @@ spec: release: "{{ .Release.Name }}" role: metrics app: {{ template "redis.name" . }} - {{- end }} {{- end }} -{{- end }} - + {{- end }} {{- if .Values.metrics.enabled }} # Allow prometheus scrapes for metrics - ports: - port: 9121 - {{- if not .Values.networkPolicy.allowExternal }} - from: - - podSelector: - matchLabels: - {{ template "redis.fullname" . }}-client: "true" - - podSelector: - matchLabels: - release: "{{ .Release.Name }}" - role: metrics - app: {{ template "redis.name" . }} - {{- end }} {{- end }} {{- end }}