memgraph / helm-charts

Helm charts for deploying Memgraph, an open-source in-memory graph database.
https://memgraph.github.io/helm-charts/
Apache License 2.0
14 stars 11 forks source link

Fix static number of volumes - fixes #11 #12

Closed hpdobrica closed 7 months ago

hpdobrica commented 1 year ago

Hello there, in order to enable running multiple replicas, each with their own storage, i have:

note that this is likely a breaking change which will require reinstall of the chart and migration of data (old single volume was named memgraph-lib-storage, new one would be memgraph-lib-storage-memgraph-$POD_NUMBER , as we are editing the volumeClaimTemplates field:

Error: UPGRADE FAILED: cannot patch "memgraph" with kind StatefulSet: StatefulSet.apps "memgraph" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden

i have also added the option to define a desired storage class to be used when creating the volumes.

this pr fixes #11

katarinasupe commented 1 year ago

Thank you, @hpdobrica, for your contribution! You're improving the Memgraph experience for our whole community 😄 We will review this PR as soon as possible and get back to you.