Migrate From lakeFS Open-Source to lakeFS Enterprise¶
To migrate from lakeFS Open Source to lakeFS Enterprise, follow the steps below:
- Make sure you have the lakeFS Enterprise Docker token. if not, contact us to gain access to lakeFS Enterprise. You will be granted a token that enables downloading dockerhub/lakefs-enterprise from Docker Hub.
- Update the lakeFS Docker image to the enterprise version. Replace
treeverse/lakefs
withtreeverse/lakefs-enterprise
in your configuration. The enterprise image can be pulled using your lakeFS Enterprise token. - Sanity Test (Optional): Install a new test lakeFS Enterprise before moving your current production setup. Test the setup > login > Create repository etc. Once everything seems to work, delete and cleanup the test setup and we will move to the migration process.
- Make sure to configure the lakeFS enterprise properly, see Enterprise installation guide
- Update your existing lakeFS configuration for enterprise (i.e
values.yaml
file for your deployment if using helm)
- Update your existing lakeFS configuration for enterprise (i.e
- DB Migration: We are going to use the same database for lakeFS Enterprise, so we need to migrate the database schema.
- Make sure to SSH / exec into the lakeFS server (old pre-upgrade version); the point is to use the same lakeFS configuration file when running a migration.
- If upgrading
lakefs
version do this or skip to the next step: Install the new lakeFS binary, if not use the existing one (the one you are running). - Run the command:
LAKEFS_AUTH_UI_CONFIG_RBAC=internal lakefs migrate up
(use the new binary if upgrading lakeFS version). - You should expect to see a log message saying Migration completed successfully.
- During this short DB migration process, please make sure not to make any policy / RBAC related changes.
- If upgrading
- Once the migration completed - Upgrade your helm release with the modified
values.yaml
and the new version and runhelm ugprade
. -
Login to the new lakeFS pod: Execute the following command, make sure you have proper credentials, or discard to get new ones:
Warning
Please note that the newly set-up lakeFS instance remains inaccessible to users until full setup completion, due to the absence of established credentials within the system.