diff --git a/bitnami/zookeeper/Chart.yaml b/bitnami/zookeeper/Chart.yaml index a9f445d23..327116f96 100644 --- a/bitnami/zookeeper/Chart.yaml +++ b/bitnami/zookeeper/Chart.yaml @@ -21,4 +21,4 @@ name: zookeeper sources: - https://github.com/bitnami/bitnami-docker-zookeeper - https://zookeeper.apache.org/ -version: 7.4.2 +version: 7.4.3 diff --git a/bitnami/zookeeper/templates/networkpolicy.yaml b/bitnami/zookeeper/templates/networkpolicy.yaml index 4221d34f5..10c5054d6 100644 --- a/bitnami/zookeeper/templates/networkpolicy.yaml +++ b/bitnami/zookeeper/templates/networkpolicy.yaml @@ -14,30 +14,28 @@ metadata: spec: podSelector: matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} + policyTypes: + - Ingress ingress: # Allow inbound connections to zookeeper - ports: - - port: {{ .Values.service.port }} - from: + - port: {{ .Values.containerPort }} + {{- if .Values.metrics.enabled }} + - port: {{ .Values.metrics.containerPort }} + {{- end }} {{- if not .Values.networkPolicy.allowExternal }} + from: - podSelector: matchLabels: {{ include "common.names.fullname" . }}-client: "true" - podSelector: matchLabels: {{- include "common.labels.matchLabels" . | nindent 14 }} - {{- else }} - - podSelector: - matchLabels: {} {{- end }} - # Internal ports - - ports: &intranodes_ports + # Allow internal communications between nodes + - ports: - port: {{ .Values.service.followerPort }} - port: {{ .Values.service.electionPort }} from: - podSelector: matchLabels: {{- include "common.labels.matchLabels" . | nindent 14 }} - egress: - - ports: *intranodes_ports - # Allow outbound connections from zookeeper nodes - {{- end }}