hi, how to change stroageclass for official helm c...
# all-things-deployment
e
hi, how to change stroageclass for official helm chart, it seems there is no option to set that, could I only use the default one. thanks
1
b
i dont think datahub chart has any PV specified, so im assuming that if you need to modify the PV class for the prerequisites, you probably need to look at the respective helm charts that it references from and see how to specify for each one? for instance, I think the bitnami mysql one can be added by:
Copy code
mysql:
  enabled: true
  primary:
    persistence:
      storageClass: xx
in the prerequisite values.yaml
e
@better-orange-49102 thansks for your reply. I get the values that could be configured with
helm show values prerequisites datahub/prerequisites
. but it has no storageClass. so I think even I provide the chart with this value, it would not render it. I am not sure if I am correct.
b
i would need to verify this (no access to cluster to try), but I would think that if you
Copy code
helm install prerequisites datahub/datahub-prerequisites -f ./customvalues.yaml
should work as the customvalues should take precedence over the bitnami mysql default values - and the default values in the mysql chart does have a storageclass defined
e
@better-orange-49102 I have tested the configuration you provided above for mysql. but the result is that mysql pvc still get no pv and stay at pending state. and when I inspect the pvc it tells me as below:
Copy code
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  creationTimestamp: "2023-07-18T05:52:41Z"
  finalizers:
  - <http://kubernetes.io/pvc-protection|kubernetes.io/pvc-protection>
  labels:
    <http://app.kubernetes.io/component|app.kubernetes.io/component>: primary
    <http://app.kubernetes.io/instance|app.kubernetes.io/instance>: prerequisites
    <http://app.kubernetes.io/name|app.kubernetes.io/name>: mysql
  name: data-prerequisites-mysql-0
  namespace: datahub
  resourceVersion: "148835051"
  uid: 48e8b3b8-4170-4933-b4bb-6db21ab0be37
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 8Gi
  volumeMode: Filesystem
status:
  phase: Pending
which means the config for mysql storage doesn’t take effect.