Upgrade Infrahub
Community
The process to migrate your instance of Infrahub to the latest version will vary depending on your deployment of Infrahub. However, at a high-level, it will involve getting the latest version and performing any needed Database Migrations and Schema updates.
For installation instructions, please refer to our Installation Guide.
Follow the instructions below for your current release version and deployment method.
Even though a "smooth" migration is anticipated, we nonetheless strongly suggest creating a backup beforehand. For detailed information, see our Backup Guide.
In Infrahub 1.2 and later, the upgrade process has been streamlined with a unified upgrade command. For earlier versions, please refer to the release notes for specific upgrade instructions.
Upgrading to Infrahub 1.2 and after
- Docker
- Helm
- Dev/Demo
# Stop the current instance
docker compose down
# Retrieve the latest docker-compose version
curl https://infrahub.opsmill.io > docker-compose.yml
# Run the unified upgrade command
docker compose run infrahub-server infrahub upgrade
# Restart the instance
docker compose up -d
# Upgrade the Helm release
helm upgrade
# Run the unified upgrade command inside the server pod
kubectl exec infrahub-infrahub-server-xxxxxx -- infrahub upgrade
# Restart deployments to apply changes
kubectl rollout restart deployment/prefect-server
kubectl rollout restart deployment/infrahub-infrahub-server
# Stop the current instance
invoke demo.stop
# Rebuild and run migrations
invoke demo.build
invoke demo.migrate
# Restart the instance
invoke demo.start
EnterpriseEnterprise Edition
The process to migrate your instance of Infrahub Enterprise to the latest version will vary depending on your deployment of Infrahub Enterprise. However, at a high-level, it will involve getting the latest version and performing any needed Database Migrations and Schema updates.
For installation instructions, please refer to our Enterprise Installation Guide.
Follow the instructions below for your current release version and deployment method.
Even though a "smooth" migration is anticipated, we nonetheless strongly suggest creating a backup beforehand. For detailed information, see our Backup Guide.
In Infrahub 1.2 and later, the upgrade process has been streamlined with a unified upgrade command. For earlier versions, please refer to the release notes for specific upgrade instructions.
Upgrading to Infrahub Enterprise 1.2 and after
- Docker
- Helm
# Stop the current instance
docker compose down
# Retrieve the latest docker-compose version
curl https://infrahub.opsmill.io/enterprise > docker-compose.yml
# Run the unified upgrade command
docker compose run infrahub-server infrahub upgrade
# Restart the instance
docker compose up -d
# Upgrade the Helm release
helm upgrade
# Run the unified upgrade command inside the server pod
kubectl exec infrahub-infrahub-server-xxxxxx -- infrahub upgrade
# Restart deployments to apply changes
kubectl rollout restart deployment/prefect-server
kubectl rollout restart deployment/infrahub-infrahub-server