Configuration reference
lib/alembic.libsonnet has two functions:
local alembic = import 'alembic/lib/alembic.libsonnet';
alembic.framework(settings)
alembic.monitoring(settings)
Both functions merge settings onto defaults.yaml. Objects merge deep. Arrays and scalars replace. Unknown keys do not change the output.
framework(settings) returns named parts. Each part is a list of Kubernetes objects.
monitoring(settings) returns named parts. It returns {} when monitoring_stack.enabled is false.
Top level
| Setting | Type | Default | Meaning |
|---|---|---|---|
|
string |
|
Namespace for all framework objects. |
|
object |
|
Extra metadata for the framework Namespace. |
|
bool |
|
Render the framework Namespace object. |
|
object |
see Images |
Registry, repository and tag overrides. |
|
object |
see below |
Chrysopoeia controller. |
|
object |
see below |
Chrysopoeia proxy. |
|
object |
see below |
Flux controllers. |
|
object |
see below |
Custos controller. |
|
object |
see below |
Ampulla controller. |
|
object |
see below |
COSI CRDs and controller. |
|
object |
see below |
cloudscale.ch COSI driver. |
|
object |
see below |
Adept controller. |
|
object |
see below |
Sigillum controller. |
|
object |
see below |
Libra controller. |
|
object |
see Monitoring |
Monitoring stack. |
Controllers
A missing enabled key means true. A missing crds.enabled key means true. Set a key to false to leave out that output.
| Setting | Type | Default | Meaning |
|---|---|---|---|
|
bool |
|
Render the Chrysopoeia controller and its RBAC. |
|
bool |
|
Render the Chrysopoeia CRDs. |
|
string |
|
Admission mode. |
|
bool |
|
Render the Chrysopoeia proxy. |
|
bool |
|
Render the Flux source, image reflector and helm controllers. |
|
bool |
|
Render the Custos controller. |
|
bool |
|
Render the Custos CRDs. |
|
bool |
|
Render the Ampulla controller. |
|
bool |
|
Render the Ampulla CRDs. |
|
string or null |
|
Add |
|
string or null |
|
Add |
|
bool |
|
Render the COSI CRDs and controller. |
|
bool |
|
Render the cloudscale.ch COSI driver. |
|
bool |
|
Render the Adept controller. |
|
bool |
|
Render the Adept CRDs. |
|
bool |
|
Render the Sigillum controller. |
|
bool |
|
Render the Sigillum CRDs. |
|
bool |
|
Render the Libra controller. |
|
bool |
|
Render the Libra CRDs. |
|
string |
|
Secret that holds the S3 endpoint, bucket and keys. |
Monitoring
Monitoring is off by default.
| Setting | Type | Default | Meaning |
|---|---|---|---|
|
bool |
|
Render the monitoring stack. |
|
bool |
|
Render the Prometheus Operator CRDs. |
|
string or null |
|
Namespace for the stack. |
|
object |
|
Extra metadata for the monitoring Namespace. The render adds the |
|
string |
|
Platform name. Required when |
|
number |
|
Alertmanager replica count. |
|
object |
see |
Alertmanager resource requests and limits. |
|
string |
|
Alertmanager data retention. |
|
object |
|
Alertmanager |
|
string |
|
Prometheus data retention. |
|
object |
see |
Prometheus resource requests and limits. |
Platforms
monitoring_stack.platform must be one of these values:
| Platform | Behavior |
|---|---|
|
Set |
|
Add the |
|
Add the |
Images
Set images.<name>.registry, images.<name>.repository or images.<name>.tag. If you leave out a field, the default stays.
| Image key | Default registry and repository | Default tag |
|---|---|---|
|
|
Controller version |
|
|
Controller version |
|
|
Controller version |
|
|
Controller version |
|
|
Controller version |
|
|
Controller version |
|
|
Controller version |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The COSI controller image does not come from this table. It stays as vendored. Because there are no stable releases.
Build inputs
controllers and vendor/ are build inputs. They do not change at call time. To change an image tag, use images.<name>.tag.
To change a controller version, edit defaults.yaml and run just gen-golden.
Examples
Framework only:
local alembic = import 'alembic/lib/alembic.libsonnet';
alembic.framework({
namespace: 'my-framework',
images: { custos: { tag: 'dev-12' } },
ampulla: { enabled: false },
libra: { bucketSecretName: 'my-bucket' },
})
Framework and monitoring:
local alembic = import 'alembic/lib/alembic.libsonnet';
local settings = {
namespace: 'my-framework',
monitoring_stack: {
enabled: true,
platform: 'talos',
crds: { enabled: true },
prometheus: { retention: '14d' },
},
};
alembic.framework(settings) + alembic.monitoring(settings)
The monitoring namespace is my-framework-monitoring in this example.