Configuration

custos controller

The manifests in config/ start it with --leader-elect and --gather-image, and set POD_NAMESPACE from the pod’s namespace.

Flag Default Description

--gather-image

Required, the controller does not start without it. The image the gather Jobs run: the same binary as the controller, invoked as custos gather.

--controller-namespace

$POD_NAMESPACE, else default

The namespace the controller runs in.

--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.

custos gather

The controller starts this in the gather Job and sets every flag itself. It is listed for debugging a failed gather.

Flag Default Description

--plan

/etc/custos/plan.json

The plan file the controller mounted.

--secret

The Secret to write the gathered values to.

--result

The ConfigMap to record the outcome in.

--credentialconfig

The CredentialConfig this gather belongs to.

--credentialconfig-uid

Its UID.

--pod-wait

60s

How long to wait for an exec’s pod to become ready before failing the run.