[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
This commit is contained in:
Martín Caballero
2020-10-13 07:59:53 -03:00
committed by GitHub
parent 1892bc6eea
commit 46039b3974
2 changed files with 10 additions and 1 deletions

View File

@@ -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:

View File

@@ -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" . }}