This guide covers upgrading an existing Currents deployment installed with the Helm chart on EKS.
For reference, the Docker Compose environment has a separate upgrade flow: Upgrading Currents On-Prem.
A chart version that needs more than the steps on this page has its own guide. Read the guide for each version between yours and the target, then upgrade as described below.
| Upgrading to | From | Images | Guide |
|---|---|---|---|
1.1.x |
1.0.x |
2026-11-10-00x |
Upgrading to Chart 1.1 |
1.0.x |
0.8.x |
2026-10-14-00x |
Upgrading to Chart 1.0 |
Infrastructure backups and third-party dependencies are customer-managed. See Currents Service Dependencies and Support Policy.
Two versions matter during upgrades:
version in Chart.yaml) controls chart templates and defaults.appVersion / currents.imageTag) controls Currents service container images.By default, helm upgrade --install without --version upgrades to the latest published chart. You can pin the chart version with --version.
Use this when release notes do not require values or secret changes:
kubectl config set-context --current --namespace=currents
helm upgrade --install currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
-f currents-helm-config.yaml
To target a specific chart version:
helm upgrade --install currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
--version 0.7.0 \
-f currents-helm-config.yaml
Use this when release notes mention new or renamed values:
currents-helm-config.yaml with the latest chart values reference:
currents-helm-config.yaml.helm upgrade --install with the updated file.Use this when release notes require new secrets:
helm upgrade --install.A release that declares a new index builds it during the upgrade, and the upgrade is not finished until the build is. On a large instances collection that has taken about an hour.
Before any pod rolls, the chart runs a pre-upgrade hook Job, currents-index-check, that reads what the build would cost. It only reads. If the estimate is over indexes.preUpgrade.thresholdSeconds (600 by default), the Job fails and Helm stops the upgrade with the running release untouched:
Error: UPGRADE FAILED: pre-upgrade hooks failed: job currents-index-check failed: BackoffLimitExceeded
Helm does not print the Job’s output, and the output is the part you need — the estimate, the collections and the indexes. Read it from the pod, which is kept for this:
kubectl logs -n currents job/currents-index-check
Index build estimated at 64 minutes, which is over the limit of 10 minutes.
instances: 109.0 GB, about 62 minutes (createdAt_1)
Estimated at 30.0 MB/s, the built-in default — this deployment has recorded no index builds of its own, so the real build may be several times faster.
That last line matters. Until an upgrade has recorded a build, the estimate uses a deliberately slow rate, so a first upgrade can stop on a build that is really much quicker. Once a build has been recorded the estimate uses this deployment’s own measured rate and the figure is worth trusting.
Build the indexes before the upgrade, while the running release keeps serving. Nothing is down for it, and the build records a measured rate that later estimates use.
The build has to come from the image you are upgrading to: the running release does not declare the new indexes, so running sync-indexes inside a current pod rebuilds what is already there. Render the same Job the hook would run, at the target version and under a name of its own, and apply it:
helm template currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
--version <target-chart-version> \
-f currents-helm-config.yaml \
--set indexes.preUpgrade.mode=build \
--set indexes.name=index-build \
--show-only templates/indexes/pre-upgrade-job.yaml \
| kubectl apply -n currents -f -
kubectl logs -n currents -f job/currents-index-build
helm template reads the chart and writes nothing to the cluster, so --version is what picks the image — pass the version you are about to upgrade to. A currents.imageTag pinned in your values file wins here exactly as it will during the upgrade. --set indexes.name=index-build gives the Job a name of its own, so it neither collides with currents-index-check nor deletes the failed check’s log. The rendered Job still carries its helm.sh/hook annotations; outside of Helm they are ordinary annotations and kubectl ignores them.
Index builds read whole collections and saturate the secondaries the API reads from, so pick a quiet window. This is the same work the upgrade would do, moved to a time you choose rather than one Helm picks.
When the Job completes, remove it and upgrade as usual — the check finds nothing pending and passes:
kubectl delete job -n currents currents-index-build
Or accept the downtime and upgrade anyway:
helm upgrade --install currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
-f currents-helm-config.yaml \
--set indexes.preUpgrade.mode=off
Or have the hook build them as part of the upgrade. Helm waits for the whole build, so raise --timeout past the estimate — otherwise Helm gives up partway and marks the release failed:
helm upgrade --install currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
-f currents-helm-config.yaml \
--set indexes.preUpgrade.mode=build \
--timeout 90m
To see what an upgrade would build without upgrading, run the plan against the running release:
kubectl exec -n currents deploy/currents-scheduler -- \
node /app/packages/mongo/dist/scripts/migrate.js index-plan
This reports the indexes the running version declares, which says nothing about what a newer chart adds. For that, render the check Job the same way as the build above with --set indexes.preUpgrade.mode=gate: it reads the plan from the target image and leaves the database alone. It exits non-zero when the estimate is over the threshold, so the Job shows as failed even though the read succeeded; the log is the answer either way.
Recommended upgrade command:
kubectl config set-context --current --namespace=currents
helm upgrade --install currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
-f currents-helm-config.yaml
Optional: if you use the Helm diff plugin, preview changes first:
helm diff upgrade currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
-f currents-helm-config.yaml
Watch rollout:
kubectl get pods
kubectl rollout status deploy -l app.kubernetes.io/instance=currents --timeout=5m
Check installed chart and app version:
helm list -n currents
Check applied values:
helm get values currents -n currents
Check running container images:
kubectl get pods -n currents -o custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[*].image
The scheduler component runs startup tasks (including migrations) on startup and logs Startup tasks complete when they finish. On a large dataset they can take several minutes. The scheduler pod reports ready while they run, so a finished kubectl rollout status doesn’t mean the migrations are done.
Check scheduler logs during/after upgrades:
kubectl logs -n currents deploy/currents-scheduler --tail=200
If a migration fails, for example with a ClickHouse Timeout error. on a busy cluster, the scheduler logs the error and keeps running, but the remaining migrations don’t run until it starts again. Restart it:
kubectl rollout restart deploy/currents-scheduler -n currents
Finished migrations are skipped, and an interrupted backfill skips the records it already updated, so a restart is safe to repeat.
If you need to rollback:
helm history currents -n currents
helm rollback currents <revision> -n currents
Then verify pod health:
kubectl get pods -n currents
kubectl get pods -n currents
kubectl describe pod <pod-name> -n currents
kubectl logs <pod-name> -n currents --all-containers --tail=200
Error: UPGRADE FAILED: pre-upgrade hooks failed: job currents-index-check failed
Read the Job’s log and pick a way forward: Index Builds Before an Upgrade.
If the log shows a connection error rather than an estimate, or the pod ran until the Job ended in DeadlineExceeded, MongoDB is not answering the chart’s currents.mongoConnection secret — the same connection every service uses. Fix that before upgrading; the check is reporting a real problem, not getting in the way.
If the log is the migrate usage line instead:
Usage: node dist/scripts/migrate.js <up|status|sync-indexes|baseline|mark> [--dry-run]
then the image the Job ran predates the check and does not know index-plan --gate. This happens when currents.imageTag is pinned to a release older than the chart. Either unpin it, or skip the check for this upgrade:
helm upgrade --install currents currents \
--repo https://currents-dev.github.io/helm-charts/ \
-f currents-helm-config.yaml \
--set indexes.preUpgrade.mode=off
If the Job ends in DeadlineExceeded and kubectl logs finds no pod, the pod was never created. kubectl describe job currents-index-check -n currents gives the reason. When it is a missing ServiceAccount:
error looking up service account currents/<name>: serviceaccount "<name>" not found
then this upgrade changes serviceAccount.name, turns on serviceAccount.create, or names an account that does not exist yet. The Job runs as that account and before the chart creates anything, so the account is not there. Run this one upgrade with the same --set indexes.preUpgrade.mode=off; from the next upgrade the check runs as the new account.
The check stops the upgrade whenever it cannot reach a verdict, rather than assuming the build is short. An upgrade it blocks for a reason you have read and accepted costs one flag; one it waves through silently costs the hour it exists to warn you about.
If services report MongoDB/ClickHouse/Redis/object storage connection errors, dependencies may still be initializing. Restart the affected deployment:
kubectl rollout restart deploy/<deployment-name> -n currents
If pods fail with missing env var or secret errors:
kubectl get secrets -n currents
helm get values currents -n currents
Confirm secret names/keys match the values in Configuration Reference.
If pods fail with ECR pull errors, verify EKS IAM access for image pulls:
This guide covers upgrading Currents Helm chart releases and application images.
Upgrading third-party infrastructure (MongoDB operators, ClickHouse operators, storage platform, cluster components) is customer-managed. See: