Upgrading Flipt in K8S
Last active a month ago
16 replies
2 views
- RP
Hi All,
My organization is using flipt for about 300 feature flags.
We are currently running version 0.7.1 and would like to upgrade to the latest edition.
Are there any considerations to be concerned about when upgrading through so many versions?
What would the process look like to export/import the existing feature flags?
We have a dev instance we can test in but I wanted to reach out and see if there was any guidance on the upgrade process as I didn't see specifics in the docs.
Some details:
Flipt deployed with Helm
Using PostgresDB Backend
K8S verson 1.17.12Thanks,
Rhys - MA
👋 hi @rpowellkore
- MA
great that you are looking to upgrade
- MA
while we always aim to make the migration path as smooth as possible, i would recommend testing the following on your dev instance first as that is indeed a lot of versions:
- backing up your database that contains all of your Flipt data
- using
flipt export
(https://www.flipt.io/docs/configuration/storage#export) to output your data in YAML - download / install the latest version
- run
flipt migrate
to run the database migrations - run
flipt import
with the data you previously exported
- MA
again, I would recommend trying this only on your dev instance first. everything should be backwards compatible, and any config changes/deprecations should output to the console at startup. but i've never tried upgrading that many versions
- MA
also as its in k8s, you might need to create some one off pods where you shell in and run these commands
- MA
if you use the latest version of flipt in your helm chart, flipt will refuse to start if there are any migrations pending, which there will be
- MA
this should give you the chance to perform the above steps manually
- MA
actually, you shouldnt need to
import
sorry about that - RP
Hey @markphelps - thanks so much for the guidance and help. It looks like exporting to YAML isn't implemented until v0.13.0, so I think my process will be as such
In Dev instance:
- take backup of PGSQL DB.
- upgrade from 0.7.1 to 0.13.0
- Run migrations
- Verify flags are present
- Export to YAML
- Backup database again
- Upgrade to latest
- Run migrations
- Validate
- MA
export
is just a failsafe - RP
Aha I was just wondering about that and was going to ask!
- MA
yeah, in reality the import/export is mainly for moving data to a new instance/db
- MA
in your case you should be good with just backing up the db, then performing the migration
- RP
OK great, I will give it a shot and report back. Thanks for the help!
- MA
cheers! yes please do. fwiw we are looking to improve our docs with info on how to upgrade versions, so any input you can share as you go through the process would be super helpful
Last active a month ago
16 replies
2 views