radondb / radondb-clickhouse-operator

Apache License 2.0
23 stars 11 forks source link

Support ClickHouse-Backup #6

Closed sozenh closed 2 years ago

sozenh commented 2 years ago

In version 2.2, we want to automate the backup and recovery capabilities of clickhouse. Here are some possible scenarios.

  1. Add ClickHouse-Backup container to the pod and expose some backup configuration.
  2. Add a CRD named 'ClickHouseBackup'.
  3. When we deploy a chbackup CR, operator will create a Kubernetes Job / CronJob for the backup task.
  4. Because ClickHouse-Backup does not support automatic cluster backup, we need to do some work with Kubernetes Job so that it works for cluster.
  5. Add several CHI configurations so that we can require recovery from backups when create cluster.