zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.39k stars 984 forks source link

Question: is separate PVC for WAL supported? #1225

Open Nizarius opened 4 years ago

Nizarius commented 4 years ago

Hi! I want to set up a separate disk for storing WAL to speed up postgres performance. Does the operator has such functionality? If not, is it possible to make this with persistence?

Samusername commented 3 years ago

"additionalVolumes" Link.

  targetContainers
  volumeSource

pgsql_temp could be stored to separate PVC also. I have not tried additionalVolumes yet in such way, and with non-root usage. Non-root usage would be mandatory for me. It would of course be fast to test.

Additionally: would postgres-operator be able to create such additionalVolumes automatically? Currently data PVCs get created automatically, if those are deleted, I think, ( Only to know how it works. )