storageClass
ahmadgh9 opened this issue · 5 comments
Hi
I cant define specific strorage class for postgreSQL pvc
Hi There,
Sorry - we need more info here! Can you describe in more detail the issue?
Hi
in this chart i can not specify the storageClass for PVC that postgreSQL is using
postgre values :
global:
postgresql: {}
imageRegistry: myRegistryName
imagePullSecrets:
- myRegistryKeySecretName
storageClass: myStorageClass
Ah understood. We would be happy to take pull requests for this - being honest this would not be a priority for us right now but we will get to it at some point!
Hi @ahmadgh9, you can set the storage class for the in-cluster Postgres in either of the following ways:
global:
storageClass: mystorageclass
or
postgresql:
persistence:
storageClass: mystorageclass
Using the second method, you can set any value that the Postgres chart understands, see all options here https://github.com/helm/charts/blob/master/stable/postgresql/values.yaml
Just to demonstrate this a different way:
$ helm repo add flagsmith https://flagsmith.github.io/flagsmith-charts/
"flagsmith" has been added to your repositories
$ helm template flagsmith/flagsmith --set global.storageClass=mystorageclass | grep -C 3 mystorageclass
resources:
requests:
storage: "8Gi"
storageClassName: mystorageclass
$ helm template flagsmith/flagsmith --set postgresql.persistence.storageClass=mystorageclass | grep -C 3 mystorageclass
resources:
requests:
storage: "8Gi"
storageClassName: mystorageclass