Introducing a new way to review your PRs.

Read the announcement

armadaproject / armada

A multi-cluster batch queuing system for high-throughput workloads on Kubernetes.

View on GitHub

20 documents · Updated Nov 23, 2026

docs / deployment-and-configuration

Deployment and configuration

Armada runs as a set of services that share message, database, and Kubernetes resources. Configuration connects the server, scheduler, executor, event pipelines, Lookout, and operator tools into one control plane. Helm charts package the services for Kubernetes, while container images and Docker Compose provide repeatable release and local system environments.

Service deployment model

Armada separates job control from job execution and from history views. This lets each part scale and restart according to its own work while shared systems carry state between them.

Service roles

The main services form three related paths: job control, cluster execution, and history. The following map shows the role of each deployable service.

ServiceSystem roleMain shared dependency
ServerAccepts requests and coordinates job and queue controlScheduler, Redis, Postgres, Pulsar
SchedulerTurns queued work and cluster capacity into assignmentsServer, Postgres, Pulsar
ExecutorApplies assignments to a Kubernetes cluster and reports resultsScheduler, Kubernetes
Scheduler ingesterPersists scheduler instruction and state streamsPostgres, Pulsar
Event ingesterKeeps event streams available for event history and metricsRedis, Pulsar
Lookout ingesterBuilds the Lookout read model from Armada eventsPostgres, Pulsar
LookoutServes job history and its web viewPostgres
BinocularsPerforms cluster-facing operational actionsKubernetes

The server and scheduler communicate through their APIs. Pulsar carries events between the control plane and the ingesters. Redis supports fast event access, while Postgres holds durable scheduler and Lookout data. The executor uses a cluster identity and applies leases, pod state checks, and cleanup rules to Kubernetes work. The broader job flow is described in the scheduling system, executor runtime, and event ingestion and history. deployment/…/README.md• L5-13, config/…/config.yaml• L1-109, config/…/config.yaml• L18-44, config/…/config.yaml• L1-109

References: deployment/…/README.md• L5-13 config/…/config.yaml• L1-109 config/…/config.yaml• L18-44 config/…/config.yaml• L1-109

Kubernetes resources

Each Helm chart turns service settings into the Kubernetes resources needed to run and reach that service. Long-running components use Deployments or a scheduler StatefulSet. Services expose API and metrics ports. Ingress resources expose selected user-facing APIs, and optional ServiceMonitor and PrometheusRule resources connect the service to a Prometheus-based monitoring stack.

The charts also define service accounts and, where needed, cluster permissions. The executor can create and manage pods, services, ingresses, and related observations. Binoculars has a narrower cluster role for node actions. These permissions are part of the deployment contract and must match the operations enabled in the service configuration. deployment/…/clusterrole.yaml• L1-94, deployment/…/clusterrole.yaml• L1-24, deployment/…/service.yaml• L1-29

References: deployment/…/clusterrole.yaml• L1-94 deployment/…/clusterrole.yaml• L1-24 deployment/…/service.yaml• L1-29

Configuration model

Armada uses a layered configuration model so the same service can run in a local process, a container, or a Kubernetes pod. A checked-in YAML file supplies the base shape. A deployment can merge override files or replace values through environment variables, and command-line flags can select the config file.

Configuration precedence

At startup, a service reads its base configuration from a service-specific config.yaml path. It then merges any files passed with the config flag. Environment variables with the ARMADA_ prefix override matching keys after the files are loaded. The loader validates the final typed configuration and warns about keys that do not match a known setting. Logging follows a separate path through ARMADA_LOG_CONFIG, with config/logging.yaml as its default.

This order allows an image to keep a usable base configuration while a deployment changes only its environment-specific endpoints, credentials, security choices, or limits. An override that changes a connection must be applied to every service that uses that connection. internal/…/startup.go• L24-89, internal/…/application.go• L16-48, cmd/…/main.go• L28-46

References: internal/…/startup.go• L24-89 internal/…/application.go• L16-48 cmd/…/main.go• L28-46

Configuration boundaries

Configuration is grouped by the responsibility of the service rather than by one global file. Server settings cover API ports, queue behavior, scheduler access, event access, message transport, job defaults, and durable data stores. The server can also mirror Query API database reads to a second Postgres database for performance checks. This mirror is bounded and does not change the primary query result.

Scheduler settings cover scheduling periods, leadership, resource types, and its API connections. They also bound scheduling work with cycle and submit-check time limits. Scheduler configuration controls resource accounting, retry policy, demand aggregate rollout, pod-capacity tracking, and pool-level fairness and preemption choices. The hard cycle limit must remain above the soft limits so a cycle can stop new work while it still handles required rescheduling. config/…/config.yaml• L1-109, config/…/config.yaml• L18-44, internal/…/configuration.go• L53-116, internal/…/configuration.go• L172-377, internal/…/configuration.go• L380-397

Executor settings cover its cluster identity, lease work, Kubernetes access, concurrency limits, pod handling, and event-based retry or failure rules. They also control optional pod diagnostics and startup timing capture. Diagnostics are bounded by selected events and node metadata, while startup timing markers and metric labels must remain stable when operators use them for comparison. Kubernetes taints can be mapped to user-facing or admin categories, while legacy tolerated taints remain recognized for compatibility. config/…/config.yaml• L1-109, internal/…/types.go• L25-118, internal/…/types.go• L146-279, internal/…/types_test.go• L14-140

Ingestion settings cover Pulsar subscriptions, batching, and storage targets. Lookout settings cover its API, database, retention, and web view. config/…/config.yaml• L1-109, config/…/config.yaml• L13-43

Lookout UI settings also connect the history view to Armada and Binoculars and define operator commands for logs and shell access. The default commands place -- before the command arguments so kubectl passes them to the target container instead of treating them as its own options. The standard and hot-cold Lookout configurations keep these controls aligned while using their own databases and UI titles. config/…/config.yaml• L13-43, config/…/config.yaml• L13-40

Values under a chart's applicationConfig are rendered into a pod-readable application configuration file. The pod template includes a checksum of that rendered file, so a configuration change causes a new pod rollout. Secret-backed options are mounted only when their related feature is enabled. This pattern is used for TLS material and Pulsar authentication in the charts. deployment/…/configmap.yaml• L1-12, deployment/…/deployment.yaml• L17-23, deployment/…/deployment.yaml• L77-96, deployment/…/scheduler-statefulset.yaml• L84-159

References: config/…/config.yaml• L1-109 config/…/config.yaml• L18-44 config/…/config.yaml• L1-109 config/…/config.yaml• L13-43 config/…/config.yaml• L13-40 internal/…/configuration.go• L53-116 internal/…/configuration.go• L172-397 internal/…/types.go• L25-279 internal/…/types_test.go• L14-140 deployment/…/configmap.yaml• L1-12 deployment/…/deployment.yaml• L17-23 deployment/…/deployment.yaml• L77-96 deployment/…/scheduler-statefulset.yaml• L84-159

Image and chart packaging

Armada packages each executable as a Linux container image and can also publish grouped images for a smaller deployment surface. The image contains the executable and its default service and logging configuration. Release metadata supplies the image tag and build identity so a deployed service can be tied back to a source revision.

Image variants

The packaging model supports these choices:

  • Individual images for the server, scheduler, scheduler ingester, executor, event ingester, Lookout, Lookout ingester, Binoculars, and command tools.
  • An Armada bundle for the core server, scheduler, executor, and related operational services.
  • A Lookout bundle for Lookout and its ingester, including the built web assets.
  • A full bundle that combines the service binaries, Lookout assets, and command tools for a complete containerized environment.

The bundle choice changes image management, not the service roles. Helm values select the repository and tag for each workload. The scheduler chart selects separate images for the scheduler and its ingester, and can also run the database pruner as a scheduled supporting job. .goreleaser.yml• L192-245, .goreleaser.yml• L247-291, .goreleaser.yml• L293-479, deployment/…/values.yaml• L5-103

References: .goreleaser.yml• L192-245 .goreleaser.yml• L247-291 .goreleaser.yml• L293-479 deployment/…/values.yaml• L5-103

Release flow

Continuous integration builds snapshot artifacts and container images from the repository. A release runs only after a version tag passes validation. The release job builds and publishes versioned and latest images, then invokes the chart publishing workflow. The supported release tag shape is a semantic version with an optional patch suffix, and the tag must point to a revision on the main or patch line.

Release images are built for Linux AMD64. armadactl also has platform-specific archives, including a universal macOS binary. Operators should use a version tag for a controlled rollout and reserve latest for environments where moving image content is acceptable. .github/…/build.yml• L6-48, .github/…/release.yml• L13-45, .github/…/release.yml• L123-140, .goreleaser.yml• L24-45

References: .github/…/build.yml• L6-48 .github/…/release.yml• L13-45 .github/…/release.yml• L123-140 .goreleaser.yml• L24-45

Deployment lifecycle

Deployment is a dependency-aware sequence. External data and messaging services must be reachable first. Database schema jobs then prepare durable state before the services that read or write that state start.

Helm installation

The Helm charts are independent deployment units. The Armada server chart exposes gRPC and REST services and can create ingress rules for both. The scheduler chart groups the scheduler, scheduler ingester, and optional database pruner. It also controls rolling updates, service identity, resource requests, ingress metadata, and optional Prometheus integration for the scheduler and ingester. Separate charts cover the executor, event ingester, Lookout, Lookout ingester, Binoculars, and cluster monitoring.

For a production installation, operators provide image tags, service endpoints, storage settings, ingress host names, service accounts, resource limits, and security settings as chart values. The server chart expects Pulsar, Redis, Postgres, and cert-manager to be available. TLS and ingress settings must agree: enabling public ingress without the required host names, issuer, or certificates prevents a useful external endpoint from being created. deployment/…/README.md• L7-29, deployment/…/values.yaml• L47-116, deployment/…/README.md• L7-73, deployment/…/values.yaml• L5-103, deployment/…/README.md• L5-23

References: deployment/…/README.md• L7-29 deployment/…/values.yaml• L47-116 deployment/…/README.md• L7-73 deployment/…/values.yaml• L5-103 deployment/…/README.md• L5-23

Database migration

Scheduler and Lookout schema changes are deployed as separate jobs rather than as part of the long-running service startup. Each job uses the service image and configuration, performs one migration run, and must complete before dependent services use the database. The Lookout executable also supports a migration mode, while the scheduler exposes a migration command for the same purpose.

This separation makes schema change an explicit lifecycle step. It also means that a release is not complete when a new image is available: the matching migration job must succeed against the target database before the service rollout proceeds. deployment/…/job.yaml• L1-56, deployment/…/job.yaml• L1-56, cmd/…/main.go• L186-195, _local/…/full.yaml• L114-139

References: deployment/…/job.yaml• L1-56 deployment/…/job.yaml• L1-56 cmd/…/main.go• L186-195 _local/…/full.yaml• L114-139

Rollout and readiness

Most service charts use rolling updates and expose a health endpoint or metrics endpoint. The server and Lookout charts use health probes for readiness and liveness. The scheduler chart uses a rolling update strategy and supplies pod identity for leader settings, which lets multiple replicas coordinate through a lease when that mode is enabled. Termination grace periods give services time to close connections and stop work.

A configuration change therefore has two effects: Helm updates the ConfigMap and its checksum causes a pod replacement, then the readiness probe controls when the replacement receives traffic. Operators should treat health as a service dependency signal, not only as a process check. deployment/…/deployment.yaml• L104-119, deployment/…/deployment.yaml• L74-89, deployment/…/scheduler-statefulset.yaml• L8-27, deployment/…/scheduler-statefulset.yaml• L44-63, deployment/…/values.yaml• L29-37

References: deployment/…/deployment.yaml• L104-119 deployment/…/deployment.yaml• L74-89 deployment/…/scheduler-statefulset.yaml• L8-27 deployment/…/scheduler-statefulset.yaml• L44-63 deployment/…/values.yaml• L29-37

Local and full-system operation

The repository supports two local operating modes that represent different deployment concerns. One mode runs dependencies in containers and Armada services as host processes. The other runs the whole stack in containers against a real local Kubernetes cluster.

Host-process development

The default local flow starts Redis, Postgres, and Pulsar with Docker Compose. It then runs Armada processes under Goreman with the per-service files in _local/…/config.yaml. Profiles select authentication, a fake executor, or a hot-cold scheduler setup. A separate migration command can reapply database changes against already-running dependencies.

This mode is useful when an engineer needs fast source-level iteration while keeping the service topology close to the deployed system. The auth profile adds Keycloak and waits for its realm before starting services. magefiles/dev.go• L16-52, magefiles/dev.go• L87-107, magefiles/dev.go• L130-145

References: magefiles/dev.go• L16-52 magefiles/dev.go• L87-107 magefiles/dev.go• L130-145

Containerized integration

The full local flow builds the bundle images, creates a Kind cluster, and starts every Armada component with Docker Compose. Migration services run before the scheduler and Lookout services. Components share the Kind network, and the executor receives the internal Kind kubeconfig so it can manage real workloads. Compose changes service host names through environment overrides while mounting the common local configuration files.

The flow waits for dependency health and completed migration jobs. Integration readiness then depends on the scheduler seeing an executor and the server accepting a job. This makes the full flow a useful check of packaging, configuration wiring, network reachability, database setup, and service startup order. magefiles/dev.go• L155-172, _local/…/full.yaml• L3-20, _local/…/full.yaml• L117-215, magefiles/ci.go• L125-149

References: magefiles/dev.go• L155-172 _local/…/full.yaml• L3-20 _local/…/full.yaml• L117-215 magefiles/ci.go• L125-149

Operations and observability

The deployment model treats security, health, metrics, and logs as part of service operation. They provide the signals and boundaries needed to run the control plane without inspecting each service's internal code.

Security boundaries

Charts run containers as a non-root Armada user and disable privilege escalation by default. Service accounts can be supplied by the operator when a deployment needs existing identity or permissions. TLS can protect gRPC and HTTP endpoints, and Pulsar token and CA material can be mounted from Kubernetes Secrets when authentication or TLS is enabled.

Cluster-facing services need permissions that match their role. The executor has broad workload permissions because it creates and reconciles jobs. Binoculars can impersonate users and change node state. These permissions should be reviewed with the enabled feature set and with the trust boundary of the target cluster. deployment/…/deployment.yaml• L20-36, deployment/…/clusterrole.yaml• L8-94, deployment/…/clusterrole.yaml• L7-24, deployment/…/deployment.yaml• L82-96

References: deployment/…/deployment.yaml• L20-36 deployment/…/clusterrole.yaml• L8-94 deployment/…/clusterrole.yaml• L7-24 deployment/…/deployment.yaml• L82-96

Health and metrics

Services expose metrics on dedicated ports, and charts can create Prometheus ServiceMonitor and PrometheusRule resources. The server chart's rules normalize queue, resource, gRPC, log, and pod-phase metrics. When enabled, the scheduler chart records job success and failure by node, cluster, and queue. It also derives short-term failure rates and preemption resource-loss ratios over configured windows such as 30 minutes and one day. The executor cluster-monitoring chart adds rules for Kubernetes pod, resource, and node data. Health probes cover service availability, while metrics show capacity, work, and operating trends.

Monitoring is optional in the chart defaults. A production deployment must enable it and provide the Prometheus integration expected by the cluster if operators rely on these signals. Scheduler rule evaluation has its own interval for preemption-loss windows because long windows cost more to evaluate. deployment/…/values.yaml• L63-71, deployment/…/prometheusrule.yaml• L1-122, deployment/…/values.yaml• L43-56, deployment/…/scheduler-prometheusrule.yaml• L1-177, deployment/…/prometheusrule.yaml• L1-52, internal/…/startup.go• L96-104

References: deployment/…/values.yaml• L63-71 deployment/…/prometheusrule.yaml• L1-122 deployment/…/values.yaml• L43-56 deployment/…/scheduler-prometheusrule.yaml• L1-177 deployment/…/prometheusrule.yaml• L1-52 internal/…/startup.go• L96-104

Log handling

All service images include the shared logging configuration. Console logs default to readable text at INFO level. File logging is off by default but can be enabled with rotation settings. ARMADA_LOG_CONFIG selects a different logging file, so operators can change log routing without rebuilding an image. build/server/Dockerfile#L8-L17, config/logging.yaml• L1-13, internal/…/application.go• L26-48

References: build/…/Dockerfile• L8-17 config/logging.yaml• L1-13 internal/…/application.go• L26-48

Change checklist

When these files or sections are changed, remember to consider these:

  • When a service config key changes, update its chart applicationConfig, the container image's bundled config, and any Compose environment override that changes the same connection.
  • When Query API mirroring is enabled or its target changes, provision the second database and keep its connection and in-flight limit aligned with the intended comparison workload.
  • When a service or port changes, update its image entry, Helm Service, ingress rule, health probe, and the dependent service endpoint together.
  • When a scheduler or Lookout schema changes, keep the migration chart, migration command, database dependency order, and release image tag aligned.
  • When scheduler cycle or submit-check limits change, preserve the hard-limit and soft-limit relationship so the scheduler can finish required rescheduling within the cycle bound.
  • When scheduler pod-capacity tracking changes, keep the pods resource supported and indexed at resolution 1 so job and node accounting use the same unit.
  • When executor taint categories change, keep user-facing and admin category names distinct and review scheduler-facing node metadata and legacy tolerated taints together.
  • When executor diagnostics or startup timing capture changes, review event payload volume, allowlisted node fields, metric label stability, and the event storage path together.
  • When scheduler chart values change, regenerate or review the scheduler chart README so its value contract matches the chart, including monitoring windows and supporting jobs.
  • When a Kubernetes action changes, review the service account and RBAC rules for executor or Binoculars before enabling the feature.
  • When a metric name, label, source series, or evaluation window changes, review the Prometheus recording rules and any ServiceMonitor or alert rules that consume it. Keep scheduler success, failure, rate, and preemption-loss rules aligned with the scheduler metric names.
  • When release packaging changes, keep the GoReleaser build ID, Docker image, bundle membership, chart image defaults, and release workflow consistent.
  • When a Lookout UI command or endpoint changes, update both the standard and hot-cold Lookout configuration when they are expected to offer the same operator action.

Important failure modes

TriggerConsequenceGuard
A required base config file is missing or an override contains an unknown keyThe service exits, or a typo is ignored after a warning instead of changing the intended settingKeep the service config path in the image or mount and review startup validation warnings
A scheduler soft timeout is not below its hard cycle timeoutThe scheduler can reject the configuration or lose the time bound intended to protect a cycleValidate the hard and soft limits together and keep submit-check limits bounded as well
A scheduler priority or retry policy names an unavailable class or policyJobs can receive unexpected scheduling or retry behaviorKeep default names and per-queue references aligned with their configured definitions
An executor taint pattern is invalid or an admin category uses a reserved nameThe executor fails during startup instead of classifying node taintsValidate patterns and keep admin categories distinct from user and unknown
Executor diagnostic capture is enabled without bounded event and metadata choicesEvent payloads grow and increase pressure on event storageSet event limits and use allowlists for node labels and annotations
A migration job does not complete before a dependent service startsThe service can fail to read or write its database schemaGate service startup on successful migration completion and inspect the migration job result
Ingress is enabled without host names, an ingress class, or a certificate issuerHelm cannot render a usable external endpointSet the ingress host, class, issuer, and TLS settings as one deployment change
Pulsar or Postgres host names differ between the base file and deployment overridesServices start but cannot exchange events or reach durable stateTreat endpoint overrides as a cross-service contract and verify them in the rendered manifests
Query API mirror work reaches maxInFlightThe primary query path remains unchanged, but mirrored traffic is dropped and comparison data under-counts real loadSize the mirror limit for the target database and treat mirrored results as non-authoritative
Executor or Binoculars permissions do not match enabled cluster actionsWorkloads cannot start or operator actions fail with Kubernetes authorization errorsReview the chart service account and cluster role with the feature change
A PrometheusRule is enabled in a cluster without the Prometheus Operator resource typeHelm applies the workload set but the recording rules are not accepted or createdInstall the monitoring resource type and verify the rendered rule before relying on the metrics
Scheduler recording rules refer to renamed or unavailable source metricsScheduler success, failure, rate, or preemption-loss dashboards show gaps or misleading valuesChange source metric names and recording expressions together, then verify the rendered PrometheusRule
A moving latest image is mixed with a versioned migration or chartBinary behavior and database schema can be out of syncPin the service, migration, and chart to the same release version
The standard and hot-cold Lookout configs drift in their operator command templatesOne Lookout view can fail to open logs or shells even though the other view worksKeep shared UI command behavior aligned and preserve the kubectl -- argument boundary

Key files

FileWhy to read it
deployment/…/values.yamlShows the server chart's main deployment, network, TLS, secret, and monitoring choices
deployment/…/prometheusrule.yamlShows the server chart's derived Prometheus metrics and leader-aware aggregation
deployment/…/values.yamlShows the scheduler, scheduler ingester, pruner, rollout, image, and monitoring choices
deployment/…/scheduler-prometheusrule.yamlShows scheduler success, failure, rate, and preemption-loss recording rules
deployment/…/README.mdStates the scheduler chart's published values contract
deployment/…/values.yamlShows executor image, cluster-facing settings, service identity, and pod priority choices
internal/…/startup.goDefines the shared file, override, environment, and validation model
internal/…/types.goDefines executor controls for cluster resources, taint categories, diagnostics, and startup timing
internal/…/types_test.goShows the supported executor taint configuration and matching contract
internal/…/configuration.goDefines scheduler timing, resource accounting, retry, pool, and scheduling contracts
config/…/config.yamlShows how the control plane connects to the scheduler, event store, message bus, and database, including the optional Query API mirror
config/…/config.yamlShows executor cluster identity, lease limits, Kubernetes timing, and pod failure handling
config/…/config.yamlShows scheduler timing, leadership, resource, and service connection concerns
config/…/config.yamlShows the standard Lookout database, retention, UI links, and operator command defaults
config/…/config.yamlShows the hot-cold Lookout database and the matching UI and operator command defaults
build/server/DockerfileShows the boundary between a service binary, its default config, and its runtime image
.goreleaser.ymlShows individual images, grouped bundles, image tags, and release artifacts
deployment/…/job.yamlShows the one-shot scheduler schema deployment contract
deployment/…/job.yamlShows the one-shot Lookout schema deployment contract
_local/…/full.yamlShows the complete dependency, migration, service, and Kind integration order
magefiles/dev.goShows the supported local host-process and containerized operating modes