API reference
BackupPolicy
ampulla.helmetica.io/v1, namespaced
BackupPolicy asks ampulla to back up the service it sits next to. The policy’s own namespace is the whole scope: the bucket is provisioned for it, the credentials land beside it, and in ModeSchedule every persistent volume in the namespace is backed up.
Spec
| Path | Type | Default | Description |
|---|---|---|---|
|
string |
BucketAccessClassName is the class the bucket credentials are minted from. Empty takes the controller’s default. |
|
|
string |
BucketClassName is the object storage the backups are written to. Empty takes the controller’s default; without either, the policy fails rather than being backed up somewhere arbitrary. |
|
|
enum: Schedule, BucketOnly |
|
Mode selects who takes the backups. |
|
object |
Retention is how many backups survive a prune. All zero takes the controller’s default retention. Mode Schedule only. |
|
|
integer |
Validation: minimum 0 |
|
|
integer |
Validation: minimum 0 |
|
|
integer |
Validation: minimum 0 |
|
|
integer |
Validation: minimum 0 |
|
|
integer |
Validation: minimum 0 |
|
|
integer |
Validation: minimum 0 |
|
|
object |
Schedule is when each of the jobs runs. Mode Schedule only. |
|
|
string |
Backup is when the backup itself runs. Falls back to the controller’s default. |
|
|
string |
Check is when the backup repository is verified. Falls back to the controller’s default; with no default configured there, no check job is scheduled. |
|
|
string |
Prune is when old snapshots are forgotten and pruned. Falls back to the controller’s default; with no default configured there, no prune job is scheduled. |
Status
| Path | Type | Default | Description |
|---|---|---|---|
|
string |
Bucket is the bucket as clients address it. |
|
|
string |
CredentialsSecret is the secret in this namespace holding the bucket’s key pair, one value per key. A service that backs itself up reads its S3 credentials there. |
|
|
string |
Endpoint is the object storage endpoint the bucket lives behind. |
|
|
string |
Message explains a Pending or Failed phase. |
|
|
integer |
ObservedGeneration is the spec generation the phase was computed from. |
|
|
string |
||
|
string |
Region is where the bucket lives. |
|
|
string |
Schedule is the schedule the backups run on, once defaults are resolved. |
BackupTemplate
ampulla.helmetica.io/v1, namespaced
BackupTemplate renders a backup resource for an operator that backs its service up itself, pointed at the bucket a BackupPolicy provisioned.
Spec
| Path | Type | Default | Description |
|---|---|---|---|
|
string |
PolicyName is the BackupPolicy in this namespace whose bucket the template is rendered with. |
|
|
object (free-form) |
Template is the object to write, always into this namespace and owned by the template, so deleting the template deletes it as well. Placeholders in it are filled from the policy’s status. $\{s3.bucket}, $\{s3.url}, $\{s3.hostPort} and $\{s3.region} may be part of any string. $\{s3.tls} (a boolean) and $\{s3.accessKeyRef} and $\{s3.secretKeyRef} (each a |