From e05e2f4deb23b240969cd5c13d1dfbb95bf0fc76 Mon Sep 17 00:00:00 2001 From: Alexandre Guitton Date: Tue, 26 May 2020 10:07:48 +0200 Subject: [PATCH] [bitnami/zookeeper] add egress rule into network policy for intra-node communication (#2596) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add egress rule into network policy for intra-node communication * bump chart version * [bitnami/zookeeper] Update components versions Signed-off-by: Bitnami Containers Co-authored-by: Bitnami Containers Co-authored-by: Javier J. Salmerón-García --- bitnami/zookeeper/templates/networkpolicy.yaml | 6 +++++- bitnami/zookeeper/values-production.yaml | 2 +- bitnami/zookeeper/values.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bitnami/zookeeper/templates/networkpolicy.yaml b/bitnami/zookeeper/templates/networkpolicy.yaml index fd623b7165..a9692dbac9 100644 --- a/bitnami/zookeeper/templates/networkpolicy.yaml +++ b/bitnami/zookeeper/templates/networkpolicy.yaml @@ -24,10 +24,14 @@ spec: matchLabels: {} {{- end }} # Internal ports - - ports: + - ports: &intranodes_ports - port: {{ .Values.service.followerPort }} - port: {{ .Values.service.electionPort }} from: - podSelector: matchLabels: {{- include "zookeeper.matchLabels" . | nindent 14 }} + egress: + - ports: *intranodes_ports + # Allow outbound connections from zookeeper nodes + {{- end }} diff --git a/bitnami/zookeeper/values-production.yaml b/bitnami/zookeeper/values-production.yaml index c2aeb4ffdd..5bfd2efae1 100644 --- a/bitnami/zookeeper/values-production.yaml +++ b/bitnami/zookeeper/values-production.yaml @@ -14,7 +14,7 @@ image: registry: docker.io repository: bitnami/zookeeper - tag: 3.6.1-debian-10-r20 + tag: 3.6.1-debian-10-r24 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' diff --git a/bitnami/zookeeper/values.yaml b/bitnami/zookeeper/values.yaml index 3d4af443a5..e704991177 100644 --- a/bitnami/zookeeper/values.yaml +++ b/bitnami/zookeeper/values.yaml @@ -14,7 +14,7 @@ image: registry: docker.io repository: bitnami/zookeeper - tag: 3.6.1-debian-10-r20 + tag: 3.6.1-debian-10-r24 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'