This article was drafted with AI help and reviewed by the author.

Kubernetes is built to replace pods a few at a time. For most stateless .NET services that is exactly what you want. For a queue-mode n8n deployment moving from 2.x to 3.0, it works against you.

n8n's update docs want a single version running across mains, workers and any webhook processors. They also say the PostgreSQL migration lock, available from 2.33.0, only serializes migrations at startup. It doesn't make mixed versions safe, and it doesn't make the update zero-downtime. A rolling update across three Deployments produces mixed versions by design.

This post is a cutover plan for that setup on AKS. It assumes Deployments for main, workers and webhook processors, Redis, Azure Database for PostgreSQL flexible server, and the encryption key held in Key Vault. n8n behavior is taken from its docs as of 30 November 2026, when n8n still called 3.0 early access. Resource names and timings below are examples.

One version, set in one place

Every n8n container image tag should come from a single value. In Helm that is one value shared by all three Deployments. In Kustomize it is one image override.

Include the task runners. If workers use external runners, each worker pod has an n8nio/runners sidecar, and n8n's docs say its version must match n8n. Two tags to bump means one will be forgotten, so tie them to the same value.

Pin a specific 3.x tag. While 3.0 is early access, a floating tag like latest can still resolve to a 2.x image, and you don't want the cluster deciding which version you get.

If you deploy with a Helm chart, its chart version is a separate thing from the n8n version. Check whether the 3.x tag you chose needs a newer chart.

The encryption key and Key Vault versions

Every n8n process must use the same instance encryption key. Many AKS setups pull it from Key Vault through the Secrets Store CSI driver.

The risk here is Key Vault's versioning. If the pods reference the secret without a version, they get the latest one. If someone ever adds a new version of that secret, perhaps thinking they are rotating it, pods started after that read a different key from pods started before.

n8n 3.0 turns on data key rotation by default, but the instance key itself is meant to stay fixed. So:

  • Reference the encryption key secret by its explicit version in the SecretProviderClass.
  • Record that version in your upgrade notes, next to the database backup.
  • Restrict who can write new versions of that secret.

Example note:

  • Key Vault: kv-automation-prod (example)
  • secret: n8n encryption key, version recorded
  • referenced by: main, worker and webhook Deployments, same SecretProviderClass
  • database backup: taken 02:10, same night

Back up the database in a way you can restore

On Azure Database for PostgreSQL flexible server, a point-in-time restore creates a new server. It doesn't rewind the existing one. That shapes the rollback plan:

  • Write down the exact restore point time before the cutover starts.
  • Know the new connection string will differ, and keep it in the same place your Deployments read it from.
  • Or take a logical dump as well, if you prefer a restore you control end to end.

Back up Redis config too. n8n keeps pending jobs in Redis, not in PostgreSQL.

Binary data and the storage path

Two 3.0 changes touch volumes.

  • On first start, 3.0 renames the binaryData folder under the n8n home to storage. If your PVC is mounted at the old folder, either move the mount to the new folder or point N8NSTORAGEPATH at the old location. n8n won't start if both folders exist.
  • The in-memory default binary mode is gone. Queue-mode instances fall back to database mode unless you choose otherwise.

If you chose filesystem mode in queue mode, each main, worker and webhook pod touching files has to see one shared disk, mounted identically. On AKS that means a ReadWriteMany volume such as Azure Files, because Azure Disk is ReadWriteOnce. n8n's docs don't recommend filesystem mode with several instances. Its azure mode, which uses Blob Storage, is worth a look while you are changing things anyway. Check that your edition includes it.

Worker capacity changes

In 3.0, runs started by hand in the editor go to workers too, every time. The variable that used to control this, OFFLOADMANUALEXECUTIONSTOWORKERS, no longer exists.

Practically, someone testing a heavy workflow in the editor now uses a worker slot and worker memory. Look at your worker memory limits and your autoscaler settings. If workers scale on queue length, editor test runs now count.

The Code node task timeout default also drops from 300 seconds to 60. If any Code node takes longer, set N8NRUNNERSTASK_TIMEOUT explicitly in the config shared by workers and runners.

The cutover

Example sequence for a quiet window:

  1. Stop new work. Scale the webhook Deployment and main Deployment to zero, so nothing new is queued. Callers get errors from your ingress during the window, so pick the time accordingly.
  2. Let workers finish. Wait for active jobs to complete, then scale workers to zero. Make sure the worker termination grace period is long enough for your longest normal execution, or a pod can be killed mid-job.
  3. Confirm nothing is running. No n8n pods in the namespace, runner sidecars included.
  4. Take or confirm the backup. Note the restore point and the Key Vault secret version.
  5. Change the single image value to the chosen 3.x release and apply it.
  6. Start main alone. Scale main to one replica and wait until it is ready. It runs the database migrations.
  7. Start workers and webhook processors on the same tag.
  8. Check. Credentials open without decryption errors. A worker picks up a manual run and a scheduled run. A test webhook returns the expected response.

You can set the Recreate strategy on each Deployment, which stops old pods before starting new ones. That helps within one Deployment, but it doesn't coordinate three of them. The explicit scale-down above does.

Rollback

Changing the image tag back is not a rollback for this upgrade. With key rotation on, 3.0 writes data in a format older versions can't read, and n8n's docs point to restoring the database backup as the way back.

Example rollback:

  • Scale all n8n Deployments to zero.
  • Restore PostgreSQL to the recorded point, onto a new flexible server.
  • Point the Deployments at the restored server.
  • Keep the same Key Vault secret version for the encryption key.
  • Revert the image value to the 2.x tag, runners included.
  • Start main, then workers and webhook processors.

Work done on 3.x after the backup is lost in a restore, and anything it did outside n8n stays done. Keep a record of that window.

Takeaways

  • A rolling update gives n8n mixed versions. Scale everything down, then start one version.
  • Set the n8n and runner image tags from a single value.
  • Pin the Key Vault version of the encryption key.
  • Fix the storage mount before the first 3.0 start, and prefer object storage to shared disks.
  • Recheck worker memory and scaling now that manual runs go to workers.
  • Plan rollback as a database restore to a new server.

For the full upgrade picture beyond AKS, including the Migration Report and staging, see this playbook on upgrading n8n to 3.0.

References