Update Helm Chart for gRPC Worker-Controller
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Available on: Open Source EditionEnterprise Edition
Kestra 2.0.0 introduces gRPC-based worker-controller communication. Every Kestra pod in the Helm chart now declares port 50051, and the chart supports three deployment patterns: standalone, standalone with detached workers, and fully distributed.
Back up your database before upgrading. Kestra 2.0.0 drops JDBC queue tables on startup. This is irreversible. A backup is the only way to recover if the upgrade fails.
Required starting point. You must be running Kestra >= 1.3.0 before upgrading to 2.0.0. If you are on an older release, complete the migration to 1.3 first. See the LTS migration guide (1.0 → 1.3).
What changed
Port 50051 exposed by default
Every Kestra container in the chart now declares port 50051 (grpc). Only pods that run a controller listen on it: the standalone pod, the webserver pod (which embeds a controller), and the dedicated controller pod. Workers open outbound connections to it. In previous releases this port was not exposed.
The chart adds port 50051 to the main Service, which fronts the standalone pod, or the webserver pod when standalone is disabled. When you enable deployments.controller, the port moves from the main Service to the dedicated controller Service.
Action required: Update any firewall rules or Kubernetes NetworkPolicy resources so that worker pods can reach port 50051 on the controller pods. If your cluster applies a default-deny network policy, add an explicit allow rule before upgrading, or workers fail to connect to the controller.
The gRPC port inherits service.type. If your main Service is a LoadBalancer or NodePort, port 50051 becomes reachable from outside the cluster after the upgrade, and gRPC traffic is unencrypted by default. Restrict access to the port. In Enterprise Edition, also enable worker authentication and TLS.
Resource names
The chart names its resources after the chart’s full name, written <fullname> on this page:
- If the release name contains
kestra,<fullname>is the release name. A release namedmy-kestracreates theServiceresourcesmy-kestraandmy-kestra-controller. - Otherwise,
<fullname>is<release-name>-kestra. A release namedprodcreatesprod-kestraandprod-kestra-controller. fullnameOverridereplaces it entirely.
Run kubectl get svc to see the exact names in your release.
New deployments.controller deployment option
A new deployments.controller key is available in values.yaml. When enabled, the chart creates a dedicated controller Deployment and a ClusterIP Service named <fullname>-controller on port 50051.
The controller deployment is disabled by default. Existing standalone deployments require no change to this key.
The controller Service type is fixed to ClusterIP. Workers running outside the cluster need an additional Service or load balancer in front of the controller pods, which you can add with extraManifests.
--worker-group flag removed
The worker --worker-group CLI flag no longer exists, and a worker started with an unknown flag fails to start. Before upgrading, remove --worker-group from the extraArgs of deployments.worker and of every workerGroups entry. A worker now joins a group by presenting a registration token.
Using the workerGroups Helm key (Enterprise Edition)
The workerGroups map in values.yaml is still supported, and each entry still creates a worker deployment named <fullname>-workergroup-<name>. What changed is how groups are defined and how tasks reach them:
- Worker Groups are created on the server, through the Kestra UI, API, or declarative configuration. Workers join a group at runtime by presenting a registration token (see Worker authentication below).
- Tasks no longer target a group by name. They declare
workerSelector.tags, which route them to a Worker Queue that one or more groups subscribe to. TheworkerGroup.keytask property is removed, and the defaultfallbackchanges fromWAITtoFAIL. See Migrating from earlier versions.
Kestra does not migrate existing worker groups. For each group you previously defined in workerGroups:
- In the Instance Owner console, go to Infrastructure → Worker Queues and create a Worker Queue with a tag for the old key, for example the id
wg-1with the tagwg-1. - Go to Infrastructure → Worker Groups, create a Worker Group (for example
wg-1), and subscribe it to that queue. Group ids must be RFC 1123 labels: lowercase letters, digits, and hyphens. Rename any old key that contains uppercase letters or underscores. - Generate a registration token for that group. Copy it immediately because it is shown only once.
- Store the token in a Kubernetes Secret, for example
kestra-wg-1-tokenwith the keytoken. - Enable worker authentication for the release and give the worker deployment its token, as shown below.
- Update your flows: replace
workerGroup.key: wg-1withworkerSelector.tags: [wg-1]. Addfallback: WAITwhere tasks should keep waiting for an unavailable worker, as they did before 2.0.
For automated and IaC deployments, use kestra.ee.setup to declare the full worker topology in application.yml. Kestra applies it at startup, so all services can start in a single Helm pass. A worker that starts before the configuration is applied exits with an authentication error, and Kubernetes restarts it until it can register. See Declarative configuration on the Worker Groups page.
configurations.application is mounted on every pod in the release, workers included. Put the settings every pod shares there, and put each worker’s registration token in that worker deployment’s extraEnv:
# Shared by every pod: webserver, executor, scheduler, controller, and workersconfigurations: application: kestra: ee: worker: auth: enabled: true
deployments: worker: enabled: true # Only this deployment receives the token, so its workers join wg-1 extraEnv: - name: KESTRA_WORKER_AUTH_REGISTRATION_TOKEN valueFrom: secretKeyRef: name: kestra-wg-1-token key: tokenThe registration token is what assigns the worker to a group, so no extraArgs are needed. Workers need kestra.ee.worker.auth.enabled: true, which they get from configurations.application. Without it, the worker ignores its token and the controller rejects the connection.
The signing key for worker access tokens defaults to kestra.encryption.secret-key. To set a separate kestra.ee.worker.auth.jwt-signing-key, keep it out of configurations.application, which the chart renders into a plaintext ConfigMap. Mount it from a Kubernetes Secret with configurations.secrets instead. Workers ignore the signing key.
If you previously ran multiple worker groups in parallel (for example wg-1 and wg-2), each group needs its own worker deployment with its own token. Add an entry under workerGroups for each additional group.
workerGroups is a top-level key in values.yaml, at the same level as deployments and configurations, not nested under deployments. Each entry adds one worker deployment, and the entry name (wg-2 below) only names that deployment. The registration token in its extraEnv decides which Worker Group its workers join, so the entry name does not have to match the group id.
# Top level of values.yaml, next to deployments and configurationsworkerGroups: wg-2: enabled: true extraEnv: - name: KESTRA_WORKER_AUTH_REGISTRATION_TOKEN valueFrom: secretKeyRef: name: kestra-wg-2-token key: tokenDo not put kestra.worker.auth.registration-token in configurations.application. Every worker deployment would receive the same token and join the same group.
Deployment patterns
Choose the pattern that matches your target architecture. Detached workers need kestra.worker.controllers to find the controller: the chart does not configure it.
Pattern 1: Standalone (no change required)
All Kestra components run in a single pod. The controller runs inside the standalone pod and the default STATIC localhost:50051 config resolves automatically, so no values.yaml changes are needed. Review the Port 50051 exposed by default section for network policy requirements.
Pattern 2: Standalone pod with detached workers
The standalone pod runs the controller, executor, scheduler, webserver, and indexer. Workers run in a separate deployment and connect back to the standalone pod for controller instructions.
deployments: worker: enabled: true
configurations: application: kestra: worker: controllers: type: STATIC static: endpoints: - host: my-kestra # <fullname>: the main Service in front of the standalone pod port: 50051Replace my-kestra with the <fullname> of your release (see Resource names).
Keep deployments.controller disabled in this pattern. Enabling it moves port 50051 off the main Service, and workers pointed at <fullname> can no longer connect.
The standalone pod also keeps its own embedded worker, so it still runs tasks. Because configurations.application reaches every pod, the embedded worker uses the same controllers setting and connects back through the Service. To run tasks only on the detached workers, start the standalone pod without a worker. Setting workerThreads: 0 does not work, because the chart skips the flag when the value is 0. Pass it explicitly:
deployments: standalone: extraArgs: - --worker-thread=0Pattern 3: Fully distributed with a dedicated controller
Each Kestra component runs in its own deployment. The controller runs separately and workers connect to it. This pattern is recommended for high-throughput production environments.
deployments: standalone: enabled: false webserver: enabled: true executor: enabled: true indexer: enabled: true scheduler: enabled: true worker: enabled: true controller: enabled: true
configurations: application: kestra: worker: controllers: type: STATIC static: endpoints: - host: my-kestra-controller # <fullname>-controller port: 50051Replace my-kestra-controller with <fullname>-controller for your release. The chart creates this ClusterIP Service on port 50051.
The webserver pod also starts an embedded controller by default. Workers pointed at <fullname>-controller never connect to it. To disable it and recover those resources, add --no-controller to the webserver’s extraArgs:
deployments: webserver: extraArgs: - --no-controllerThis is optional. The embedded controller is harmless if left running.
To run more than one controller, set deployments.controller.replicas. The ClusterIP Service resolves to a single virtual IP, so each worker stays on one controller pod until the controller recycles the connection (kestra.controller.max-connection-age, default PT1H). To spread workers evenly across controller pods, add a headless Service (clusterIP: None) with extraManifests and use type: DNS discovery against it.
Worker authentication (Enterprise Edition)
Worker authentication secures the gRPC channel between workers and controllers with JWT tokens. It is disabled by default and requires explicit opt-in. In the open-source edition, use kestra.grpc.basic-auth to require a shared username and password on the gRPC channel instead.
When enabled, workers present a registration token generated for their Worker Group. On first connect, the worker exchanges this token for a short-lived access token and a rotating refresh token. The access token is refreshed automatically. Revoking or deleting a token, or force-deleting its Worker Group, disconnects the workers that used it immediately.
In a Helm release, the settings split like this:
| Setting | Where to put it | Pods that use it |
|---|---|---|
kestra.ee.worker.auth.enabled: true | configurations.application | Every pod, workers included |
kestra.ee.worker.auth.jwt-signing-key (optional) | A Secret mounted with configurations.secrets | Every pod except workers. Workers ignore it |
KESTRA_WORKER_AUTH_REGISTRATION_TOKEN | extraEnv of each worker deployment (deployments.worker or a workerGroups entry) | Only the workers of that group |
See Using the workerGroups Helm key for a complete values.yaml example, and Where each setting goes for the same split outside Helm.
Generate registration tokens from Infrastructure → Worker Groups → [group] → Tokens in the Instance Owner console, or via POST /api/v1/instance/worker-groups/{id}/tokens. The plaintext token is shown only once, so copy it before closing the dialog.
The controllers never need the registration token in their configuration. Kestra stores a hash of each generated token in the database, and the controller checks the token a worker presents against it. The only exception is declarative setup, where you list a pre-generated token under kestra.ee.setup so that Kestra registers it at startup.
Only the default Worker Group
Once worker authentication is enabled, every detached worker needs a registration token, even when you use only the built-in default group. A worker without a token is rejected. Generate a token for the default group (Infrastructure → Worker Groups → default → Tokens, or POST /api/v1/instance/worker-groups/default/tokens), store it in a Kubernetes Secret, and pass it to the worker deployment:
configurations: application: kestra: ee: worker: auth: enabled: true
deployments: worker: enabled: true extraEnv: - name: KESTRA_WORKER_AUTH_REGISTRATION_TOKEN valueFrom: secretKeyRef: name: kestra-default-worker-token key: tokenDetached workers also need kestra.worker.controllers from your deployment pattern. No workerGroups entry is needed. The standalone pod’s embedded worker is the exception: the standalone server generates its own token at startup, so a standalone-only installation needs no token configuration.
To encrypt the gRPC channel, configure TLS in configurations.application, and mount the keystore and truststore files from Kubernetes Secrets with extraVolumes and extraVolumeMounts.
Upgrade steps
- Back up your database. Kestra 2.0.0 drops JDBC queue tables on startup. This cannot be undone without a backup.
- Review network policies. Port 50051 is now exposed. Add allow rules between Kestra components before upgrading if your cluster uses default-deny network policies. If your main
Serviceis notClusterIP, restrict external access to port 50051. - Remove
--worker-groupfromextraArgs. Checkdeployments.workerand everyworkerGroupsentry. - Select your deployment pattern. Determine whether you are staying on standalone, adding detached workers, or moving to fully distributed. Prepare the corresponding
values.yamlchanges. - Upgrade the chart. Use
2.0.0or the latest2.0.xchart version:helm upgrade my-kestra kestra/kestra --version 2.0.0 -f values.yaml - Verify all pods reach
Runningstate.kubectl get pods -l app.kubernetes.io/name=kestra - Confirm workers connect to the controller. Each worker logs
Connected to controller, workerGroup: <group>once connected. If workers log connection errors on port 50051, verify that thekestra.worker.controllers.static.endpoints[0].hostvalue matches aServicename fromkubectl get svcand that network policies allow the traffic.
Reference
- Kubernetes deployment guide: full
configurations.applicationreference and credential injection patterns - Helm chart values.yaml for 2.0: full list of available chart options
Was this page helpful?