cockroachdb / helm-charts

Helm charts for cockroachdb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

allow to add extra volumes in cockroachdb pods

fredleger opened this issue · comments

Use case

We need to take backups of cockroachdb (like everybody spould) and export them to an external repository
For doing so we want to use tanzu/velero project.

Analysis

Since there is no other volumes tahn datadir and certs there is not good candidate to dump the databases.
We could have been end up using datadir but this meens to sync also the real data files of cockroachdb which is both not needed and a ressource exausting

Solution

We can allow to pass extra volumes to STS pods in order to have an easy way to backup our dbs
This can also be used for other use cases since this is quite a generic approach
Seems to be the way taken for a lot helm charts of the community, especially bitnami ones so it can be considered as a good practice

@piyush-singh thoughts on this? This would be an enhancement and probably not something we'd want to support with the operator.