From 46039b39746bbcb6703210e7d0a911fb00349403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Caballero?= Date: Tue, 13 Oct 2020 07:59:53 -0300 Subject: [PATCH] [bitnami/postgresql] Added `publishNotReadyAddresses: true` to svc-headless.yaml (#3990) * Set endpoints to be published before readiness checks pass as these endpoints are required to bootstrap the Cluster and make the application ready. * Incremented version number --- bitnami/postgresql/Chart.yaml | 2 +- bitnami/postgresql/templates/svc-headless.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bitnami/postgresql/Chart.yaml b/bitnami/postgresql/Chart.yaml index 53fd493078..e35b8670d0 100644 --- a/bitnami/postgresql/Chart.yaml +++ b/bitnami/postgresql/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: postgresql -version: 9.8.3 +version: 9.8.4 appVersion: 11.9.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/bitnami/postgresql/templates/svc-headless.yaml b/bitnami/postgresql/templates/svc-headless.yaml index fb8c838d24..0d50de1d35 100644 --- a/bitnami/postgresql/templates/svc-headless.yaml +++ b/bitnami/postgresql/templates/svc-headless.yaml @@ -7,9 +7,18 @@ metadata: {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} + # Use this annotation in addition to the actual publishNotReadyAddresses + # field below because the annotation will stop being respected soon but the + # field is broken in some versions of Kubernetes: + # https://github.com/kubernetes/kubernetes/issues/58662 + service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" spec: type: ClusterIP clusterIP: None + # We want all pods in the StatefulSet to have their addresses published for + # the sake of the other Postgresql pods even before they're ready, since they + # have to be able to talk to each other in order to become ready. + publishNotReadyAddresses: true ports: - name: tcp-postgresql port: {{ template "postgresql.port" . }}