- Running the pre-upgrade script from the admin-cli.
- Updating the dittofeed image tag.
- Running the post-upgrade script from the admin-cli.
If you are on a version of dittofeed prior to v0.20.0, you will need to upgrade to v0.20.0 prior to upgrading to v0.23.0. See the Upgrading from v0.19.0 to v0.20.0 guide for more information on upgrading to v0.20.0.
Upgrade Dittofeed in Docker Compose
Step 1: Setting Up Your docker-compose.lite.yaml File
First, add the environment variable BOOTSTRAP: "false" to your docker-compose.lite.yaml file, if it isn’t set already. This will prevent your lite instance from running bootstrap operations when it restarts.
Next, make sure you have an admin-cli instance specified in our docker-compose.lite.yaml file. We’ll be using this service to run our migrations.
Your docker-compose.lite.yaml file should look something like this:
Step 2: Start the admin-cli Service
Next, run the following command to start your admin-cli service:
Step 3: Run the Pre-Upgrade Script
Run the pre-upgrade script to run postgres migrations and create the new clickhouse tables and views:Step 4: Upgrade Your docker-compose.lite.yaml File
Upgrade the version in your docker-compose.lite.yaml file to v0.23.0:
Step 5: Run the Post-Upgrade Script
Step 6: Stop the admin-cli Service
Finally, stop the admin-cli service:
Upgrade Dittofeed in Kubernetes
Step 1: Setting Up Your dittofeed values.yaml File
First, add the environment variable BOOTSTRAP: "false" to your values.yaml file for the dittofeed helm chart, if it isn’t set already. This will prevent your lite instance from running bootstrap operations when it restarts.
values.yaml
Step 2: Install the dittofeed-admin-cli Chart
Next, run the following command to install the dittofeed-admin-cli chart:
dittofeed-admin-cli pod is running the version of the dittofeed-admin-cli chart that you’re upgrading to.
chart.yaml
tag in your values.yaml file to v0.21.0:
values.yaml
Step 3: Run the Pre-Upgrade Script
Run Dittofeed’s database migrations before deploying the new version of Dittofeed: Exec into thedittofeed-admin-cli pod:
Step 4: Upgrade the Dittofeed Chart
Update thetag in your values.yaml file to v0.23.0:
values.yaml
Step 5: Run the Post-Upgrade Script
Run the post-upgrade script after the dittofeed chart is upgraded:Step 6: Uninstall the dittofeed-admin-cli Helm Chart
Finally, uninstall the dittofeed-admin-cli deployment:

