Use existing claim for rocketchat-mongodb
After !338 (merged) we use an existing claim for rocketchat, but not for rocketchat-mongodb.
This is because by default, the mongodb chart uses a statefulSet.
StatefulSets don't use volume.existingClaim
but a volumeClaimTemplates
, which always created a PVC dynamically in the notation volumeClaimTemplate.name + pod.name + integer
. At least I didn't find a similar way like we use existing PVCs together with a statefulset (but I might be wrong).
What I tried so far in the rocketchat values was to disable the statefulSet (which then would install a deployment):
mongodb:
persistence:
enabled: true
size: 2Gi
existingClaim: "rocketchat-mongodb"
replicaSet:
enabled: false
useStatefulSet: false
But this also didn't work out because helm-operator complained about a wrong API version (the current rocketchat chart uses the 7.1.1
mongodb chart, and there the Deployment is created using apiVersion: extensions/v1beta1
).
Lets look at this after some time, maybe this will get fixed upstream.