hey all, when upgrading airbyte, is there a way to...
# replication-ask-ai
k
hey all, when upgrading airbyte, is there a way to maintain configuration data? Ie keep logs, connection configs etc. going from a version
0.40.0-alpha
using kustomize to using helm. For a different environment, we did a full delete and redeployed.
k
A message from kapa.ai
Yes, you can maintain your configuration data when upgrading Airbyte from a version under 0.40 using Kustomize to using Helm. To do this, follow these steps: 1. Export your Airbyte configuration data and sync history by navigating to the Admin page in the UI, going to the Configuration Tab, and clicking Export. This will download a compressed backup archive (gzipped tarball) of your data locally. Note that any secrets you have entered into Airbyte will be in this archive, so treat it as a secret. [source](https://docs.airbyte.com/operator-guides/upgrading-airbyte#upgrading-on-k8s-%E2%80%8B-part-0) 2. Migrate the local archive to the new version using the Migration App (packaged in a Docker container). Use the following command, replacing the placeholders with your specific paths and version:
Copy code
docker run --rm -v <path to directory containing downloaded airbyte_archive.tar.gz>:/config airbyte/migration:<version you are upgrading to> --\    --input /config/airbyte_archive.tar.gz\    --output <path to where migrated archive will be written (should end in .tar.gz)>\    [ --target-version <version you are migrating to or empty for latest> ]
[source](https://docs.airbyte.com/operator-guides/upgrading-airbyte#upgrading-on-k8s-%E2%80%8B-part-0) 3. Delete the existing Airbyte Kubernetes volumes after exporting your data (step 1). Be cautious as this command will delete your data in Kubernetes:
Copy code
# Careful, this is deleting data!    kubectl delete -k kube/overlays/stable
[source](https://docs.airbyte.com/operator-guides/upgrading-airbyte#upgrading-on-k8s-%E2%80%8B-part-1) 4. Deploy Airbyte on Kubernetes using Helm following the instructions in the [documentation](https://docs.airbyte.com/deploying-airbyte/on-kubernetes-via-helm). 5. Import your migrated archive by navigating to the Admin page in the UI, going to the Configuration Tab, and clicking on Import. Upload your migrated archive. [source](https://docs.airbyte.com/operator-guides/upgrading-airbyte#upgrading-on-k8s-%E2%80%8B-part-1) By following these steps, you can upgrade Airbyte while maintaining your configuration data, logs, and connection configs.
m
I suggest to you first upgrade to latest version and after move the database data to the new one deployed with Helm.