CrunchyData / postgres-operator

Production PostgreSQL for Kubernetes, from high availability Postgres clusters to full-scale database-as-a-service.
https://access.crunchydata.com/documentation/postgres-operator/v5/
Apache License 2.0
3.97k stars 595 forks source link

Allow ovverrider for postgresql.conf.sample pre-init #3421

Closed rhrytskiv closed 1 year ago

rhrytskiv commented 2 years ago

Overview

Hi, our k8s provider has this issue where we have to have huge_pages set to off before the db init otherwise it's just failing. I couldn't find any means to do it via you docs so I mad my own docker image based on yours where I just replace postgres.conf.sample that you have. It'be best to avoid this approach and just set it via config.

p.s. dynamic postgres config settings does not solve this as they don't affect init db.

Environment

dsessler7 commented 1 year ago

Hello @rhrytskiv,

This issue has been resolved in our latest releases: 5.4.0, 5.3.2, 5.2.3, and 5.1.6.