Configuration

Ampulla runs as ampulla controller. The manifests in config/ start it with --leader-elect.

Backup defaults

These apply to every BackupPolicy that leaves the setting empty.

Flag Default Description

--default-bucket-class

The COSI BucketClass backup buckets are provisioned from. Without it, and without .spec.backup.bucketClassName on the policy, a policy asking for backups is rejected rather than guessed at.

--default-bucket-access-class

The COSI BucketAccessClass the bucket credentials are minted from.

--default-schedule

@daily-random

The K8up schedule backups run on.

--default-prune-schedule

@weekly-random

The K8up schedule old snapshots are pruned on. Empty disables pruning.

--default-check-schedule

@weekly-random

The K8up schedule the restic repository is checked on. Empty disables checks.

--template-service-account

instance-admin

The ServiceAccount impersonated in a BackupTemplate’s namespace to write the rendered object. Ampulla’s ClusterRole only allows impersonating `instance-admin.

Set the bucket classes per cluster. config/dev does it for athanor, whose COSI classes are called garage:

args:
- controller
- --leader-elect
- --default-bucket-class=garage
- --default-bucket-access-class=garage

Manager

Flag Default Description

--metrics-bind-address

:8080

The address the metrics endpoint binds to.

--metrics-secure

true

Serve the metrics endpoint via HTTPS. --metrics-secure=false uses HTTP.

--metrics-cert-path

The directory that contains the metrics server certificate. Empty generates a self-signed one.

--metrics-cert-name

tls.crt

The name of the metrics server certificate file.

--metrics-cert-key

tls.key

The name of the metrics server key file.

--health-probe-bind-address

:8081

The address the health and readiness probes bind to.

--leader-elect

false

Enable leader election, so only one controller manager is active.

The --zap-* flags of controller-runtime set the log output, for example --zap-log-level=debug or --zap-devel.