zalando / postgres-operator

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

SIngle Node, multiple ZFS Pools, allow different Storage Classes for replicas and master (ie split between multiple ZFS Pools) #2250

Open MarkCupitt opened 1 year ago

MarkCupitt commented 1 year ago

Please, answer some short questions which should help us to understand your problem / question better?

We run Single Node and Multi Node CLusters and recently moved storage to ZFS. On our Single Node Clusters, we have 2 mirrored zfs pools, each are mapped to a different openebs provider Storage Class.

We would like to be able to put the master on one storage class, and replicas on another, to keep the data physically separated, and let us use zfs to snapshot the replica only

Is this possible? So far I can not see a way to achieve this, but likely I'm missing something obvious

Many thanks in advance

FxKu commented 1 year ago

The storage class you can define in the volume section of the Postgres manifest will be used for all PVCs of the database cluster. We do not support any distinction between primary and replicas.