Skip to content

Configuration reference

Each layer of Brewlet configuration has one source of truth. Change the source, not the resources Brewlet generates from it.

Layer Configures
Helm values Control-plane options and optional NodeProfiles.
RuntimeImage Approved runtime source, default user and compatibility metadata.
NodeProfile Node pools, runtime offerings, installation policy, mirrors and worker rollout.
Pod or workload controller Per-container runtime selections, application image, resources and rollout policy.

Manage these objects through Helm or GitOps. Do not edit the worker DaemonSets that the operator generates; the operator reconciles them.

Helm values

The published chart pins each component image to the digest of the release. The source chart defaults to matching image tags; VERSION below is the chart's release version.

Key Default Meaning
operator.image ghcr.io/microsoft/brewlet-operator:VERSION Operator and uninstall-coordinator image.
admission.image ghcr.io/microsoft/brewlet-admission:VERSION Admission webhook image.
provisioner.image ghcr.io/microsoft/brewlet-node-provisioner:VERSION Privileged node worker image, including the shim.
provisioner.profiles [] NodeProfiles to create, as {name, spec} entries. Each must set spec.nodePool.names.
provisioner.gc.grace 1h How long an unused runtime generation is kept before collection.
provisioner.gc.sweepInterval 1m How often unused generations are collected.
security.allowedSourceMirrorHosts [] Registry hosts allowed as runtime-source mirrors (exact match).
admission.enabled true Deploy admission; disabling it does not disable shim enforcement.
admission.nodeProfileFailurePolicy Fail Failure policy for the RuntimeImage and NodeProfile validation webhooks.
operator.rotationRestarts.enabled false Let the operator restart opted-in workloads after a runtime rotation. Also installs the required RBAC and ValidatingAdmissionPolicy.
operator.rotationRestarts.maxConcurrent 5 Maximum workloads restarted at once.
operator.rotationRestarts.nodeProgressDeadline 10m Node-rotation progress deadline.
operator.rotationRestarts.workloadProgressDeadline 10m Workload restart progress deadline.
operator.rotationRestarts.namespaces [] Optional restart namespace allowlist; when set, patch rights use a Role per namespace instead of the ClusterRole. Namespaces must exist and cannot be the release or a protected namespace.
operator.rotationRestarts.protectedNamespaces [kube-system, kube-public, kube-node-lease] Namespaces the restart admission policy always refuses.
uninstall.timeoutSeconds 240 Uninstall cleanup timeout, a whole number from 1 to 86400.
metrics.enabled false Enable operator and node Prometheus endpoints.
metrics.nodePort 9090 Node metrics listener/service port; this is not a NodePort service type.
dashboard.enabled false Install the optional cluster dashboard; available in releases that include the component.
dashboard.image Release-matched dashboard image digest Override only when mirroring the image; use an image from the same Brewlet release as the chart.
dashboard.imagePullPolicy IfNotPresent Dashboard image pull policy.
dashboard.allowWrite false Enable confirmed runtime rotations; caller patch RBAC is still required.
dashboard.publicURL "" Exact trusted HTTPS origin for your ingress/proxy. Empty means loopback port-forward access only.
dashboard.resources Requests 50m/64Mi, limits 500m/256Mi Dashboard CPU/memory requests and limits.

The Pod mutating webhook always fails open (Ignore), and the NodeRetirementEvidence webhook always fails closed (Fail). There is no generic admission.failurePolicy value.

RuntimeImage

node.brewlet.sh/v1alpha1, cluster-scoped:

Field Meaning
spec.source.image Digest-pinned OCI image reference. Tags are rejected.
spec.user.uid, spec.user.gid Default non-root numeric user and group. Immutable; 0 and the reserved maximum are rejected.
spec.description Human-readable description.
spec.compatibility.ecosystem, spec.compatibility.abi Informational compatibility metadata. Brewlet does not resolve versions from it.
spec.volumeMountPaths Immutable list of paths outside /app/ where workloads may mount volumes. See mount locations.

The object's Kubernetes UID identifies the inventory epoch. status.generation is the runtime generation Brewlet allocated. It is not the same as metadata.generation.

NodeProfile

Field Meaning
spec.nodePool.key, spec.nodePool.names Node label key and the pool names it selects. Name pools explicitly.
spec.nodePool.includeControlPlane Opt in to control-plane nodes. Defaults to false.
spec.runtimeImages[].id Approved runtime ID offered on this pool.
spec.runtimeImages[].install Eager (default) or OnDemand.
spec.runtimeImages[].idleTTL OnDemand only. Uninstall the runtime after it is unused for this long.
spec.tolerations Tolerations for the worker. None are added by default.
spec.registry.mirrors Source-to-mirror registry mapping. Mirrors must be in security.allowedSourceMirrorHosts.
spec.rollout.maxUnavailable Maximum nodes updated at once during a worker rollout.
spec.rollout.containerdRestart validated (default) or none.

With none, Brewlet never restarts containerd, so the host's containerd configuration must already be correct. Brewlet cannot then repair missing layer-retention or runtime-handler settings, and cleanup of earlier changes is still required.

Pod and controller settings

Set runtimeClassName: brewlet and add a Pod annotation for each managed container, such as runtime-image.brewlet.sh/app: python-3.13. Unselected containers use ordinary OCI behavior. A Pod may select multiple runtimes, but a single eligible NodeProfile must offer the full set. Brewlet adds the runtime capability constraints while preserving your other scheduling requirements.

Selected containers (application, init, or ephemeral) must use securityContext.readOnlyRootFilesystem: true. Admission sets it when omitted and rejects an explicit false; the shim also refuses a writable root if admission was bypassed. Unselected OCI containers retain ordinary security defaults subject to cluster policy.

Volume and device mounts outside /app/ must be listed in the runtime's RuntimeImage.spec.volumeMountPaths. See mount locations.

To have the operator restart a workload after a runtime rotation, set brewlet.sh/restart-on-rotation: "true" on the workload controller's metadata (not on its Pod template) and enable operator.rotationRestarts.enabled. runtime-generation.brewlet.sh/<id> is a JSON minimum-generation barrier, not a free-form version string. See public workload annotations.

The chart requires Kubernetes 1.30 or later. Its runtime-selection ValidatingAdmissionPolicy installs even when the mutating webhook and rotation restart feature are disabled.

RuntimeClass overhead

The brewlet RuntimeClass reserves 50m CPU and 64Mi memory per Pod for shim and staging overhead. These are scheduling reservations, not measured usage, and they do not include the language runtime's own memory.

Helm value Default Meaning
runtimeClass.overhead.cpu "50m" Nonnegative Kubernetes CPU quantity string per Pod.
runtimeClass.overhead.memory "64Mi" Nonnegative Kubernetes memory quantity string per Pod.

Set these at installation, based on measurements of your own workloads. For example, pass this file with --values overhead.yaml:

runtimeClass:
  overhead:
    cpu: "100m"
    memory: "96Mi"

These values are an example, not a sizing recommendation. The chart rejects empty, negative or non-string values. When passing a plain number on the command line, use --set-string.

Pod overhead affects scheduling and quota accounting and is recorded when Pods are admitted. At the defaults, 1,000 Pods reserve an extra 50 CPU cores and 62.5 GiB of memory. Do not remove the reservation without measurements that justify it. Changing the overhead affects only newly admitted Pods; existing Pods keep their values until they are replaced.

Registry and environment precedence

Credentials for pushing artifacts, kubelet pulls of application images, node pulls of runtime sources, and application outbound TLS are configured separately. See registry and certificate trust.

The runtime image's environment provides defaults. Environment variables set in the container spec override them, except PATH, which the runtime always controls. Exec sessions, probes and hooks use the same environment as the main process. See launch descriptor.