Kubernetes

Upgrade an installation made with the Helm chart

  1. Before you upgrade
  2. 1. Find the new chart version
  3. 2. Upgrade the release
  4. 3. Check the upgrade
  5. Roll back

Each chart version deploys one AnsibleForms release. An upgrade installs a newer chart version with your existing values; the data on the persistent volumes is preserved. An upgrade that changes nothing leaves the pods untouched.

Before you upgrade

Prepare the upgrade so that you can go back if something goes wrong:

  • Take a backup under Settings → Backups. The new release upgrades the database schema at its first start.
  • Read the changelog for the releases between your version and the new one.
  • Moving to a new major version? Follow Upgrading to v7 first.
  • Read the chart’s changelog for changes to the values.
  • With generated credentials (secrets.generate), back up the <release>-secrets Secret: ENCRYPTION_SECRET cannot be recovered.

1. Find the new chart version

Refresh the chart repository and list the available chart versions:

helm repo update
helm search repo ansibleforms/ansibleforms --versions

2. Upgrade the release

Run the same helm upgrade command as at installation, with your values file and the new chart version:

helm upgrade --install ansibleforms ansibleforms/ansibleforms \
  --namespace ansibleforms \
  --values my_values.yaml \
  --version 7.0.5

With the OCI registry, use oci://ghcr.io/ansibleforms/charts/ansibleforms as the chart.

3. Check the upgrade

Wait for the new pods, then run the chart’s test, which checks both the web server and the database connection:

kubectl -n ansibleforms get pods -w
helm test ansibleforms --namespace ansibleforms --logs

In AnsibleForms, Help → About shows the version that is running, and Settings → Status shows the health of the database, the schema and the other systems AnsibleForms depends on.

Roll back

Helm keeps the history of the release. To go back to the previous revision:

helm history ansibleforms --namespace ansibleforms
helm rollback ansibleforms --namespace ansibleforms

If it does not start on the upgraded database, restore your backup (see the chart’s README).


Copyright © 2023-2026 AnsibleForms. All rights reserved.

This site uses Just the Docs, a documentation theme for Jekyll.