Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
7 - Til the Krack of dawn
-
5
Description
Overview
Add in an a boolean spec.ephemeralVolume. This will allow backup to a remote storage provider using a volume which is created/destroyed with the backup pod.
Backwards Compatability
The default of spec.ephemeralVolume will be false
Add
CouchbaseBackup.spec.ephemeralVolume
CouchbaseBackupRestore.spec.stagingVolume.size
CouchbaseBackupRestore.spec.stagingVolume.storageClass
DAC
if CouchbaseBackup.spec.ephemeralVolume is true and no cloud backup strategy is provided, the DAC will reject the request
Operator -> CronJob Changes
if spec.ephemeralVolume is true -> Create Ephemeral Volume on CronJobs PodSpec
Testing
- No changes to existing tests
- New test to ensure that PV does not exist after backup run with spec.ephemeralVolume == true
- use node selector to run backup on node, change node run backup. no fail?
Hi,
by ephemeral you mean emptyDir (on the local disk, e.g. /var/lib/kubelet)? If so, we have to make sure the required disk is available on local.
Or it's a PV which will be removed after backup ends?