Name and Version
bitnami/postgresql 11.1.19
What steps will reproduce the bug?
- I am deploying the helm chart using terraform, but that should not matter
- with tls enabled and healtchecks enabled postgres does not start
Are you using any custom parameters or values?
tls.enabled: yes
tls.certificatesSecret: postgresql-tls-secret
tls.certFilename: cert.crt
tls.certKeyFilename: cert.key
tls.certCAFilename: ca.crt
primary.livenessProbe.enabled: true
primary.readinessProbe.enabled: true
primary.pgHbaConfiguration includes
hostssl all postgresql 127.0.0.1/32 cert
What is the expected behavior?
Postgres should start properly
What do you see instead?
The command for the probes are rendered as
exec pg_isready -U "postgres" -d "sslcert=/opt/bitnami/postgresql/certs/cert.crt sslkey=/opt/bitnami/postgresql/certs/cert.key" -h 127.0.0.1 -p 5432
If I run that manually:
I have no name!@postgresql-0:/$ pg_isready -U "postgres" -d "sslcert=/opt/bitnami/postgresql/certs/cert.crt sslkey=/opt/bitnami/postgresql/certs/cert.key" -h 127.0.0.1 -p 5432
127.0.0.1:5432 - no response
If I instead do
pg_isready -U "postgres" -d "sslcert=/opt/bitnami/postgresql/certs/cert.crt" -d"sslkey=/opt/bitnami/postgresql/certs/cert.key" -h 127.0.0.1 -p 5432
127.0.0.1:5432 - accepting connections
i.e. separate -d options
Additional information
I suspect if I'd use custom checks I would be able to make it work
Name and Version
bitnami/postgresql 11.1.19
What steps will reproduce the bug?
Are you using any custom parameters or values?
tls.enabled: yes
tls.certificatesSecret: postgresql-tls-secret
tls.certFilename: cert.crt
tls.certKeyFilename: cert.key
tls.certCAFilename: ca.crt
primary.livenessProbe.enabled: true
primary.readinessProbe.enabled: true
primary.pgHbaConfiguration includes
hostssl all postgresql 127.0.0.1/32 cert
What is the expected behavior?
Postgres should start properly
What do you see instead?
The command for the probes are rendered as
exec pg_isready -U "postgres" -d "sslcert=/opt/bitnami/postgresql/certs/cert.crt sslkey=/opt/bitnami/postgresql/certs/cert.key" -h 127.0.0.1 -p 5432If I run that manually:
If I instead do
i.e. separate -d options
Additional information
I suspect if I'd use custom checks I would be able to make it work