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

Default storage class #2052

Closed kseswar closed 4 years ago

kseswar commented 4 years ago

Hi Team,

Just wanted to know how can we set a default storage class for postgres operator

Please tell us about your environment:

Operating System: Linux based Where is this running ( Local, Cloud Provider) - GCP GKE cluster Storage being used (NFS, Hostpath, Gluster, etc):GCP PVC, Container Image Tag: centos7-4.3.0 / centos7-12.2-4.3.0 PostgreSQL Version:12.2 Platform (Docker, Kubernetes, OpenShift): Kubernetes Platform Version: 1.16.11-gke.5

jkatz commented 4 years ago

Support for Kubernetes default storage classes was added in Postgres Operator v4.5.0.

PR #1912 shows the template file modification that can be made if you want to attempt to run it in an older version (https://github.com/CrunchyData/postgres-operator/pull/1912/files#diff-eec4085a11beff027403318475c14ce1b7ac63b814ac9ddf1d63a59c2afd8b0d) however, it is technically unsupported until v4.5.0.