zalando / postgres-operator

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

How to run more than one numberOfInstances with storageClass #2766

Open Zia- opened 1 month ago

Zia- commented 1 month ago

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

I'm using https://github.com/zalando/postgres-operator/blob/master/manifests/complete-postgres-manifest.yaml yaml to deploy my cluster on Bare Metal K8s.

Kindly help me define volume and additionalVolumes in this yaml so that I can assign different storageClass to each instance. I eventually want to run numberOfInstances: 2 and want to use different location for each instance. Currently, if I use

volume:
    size: 1Gi
    storageClass: standard-external

it doesn't support more than one instance as PVCs are not ReadWriteMany enabled.