migrant
by Devtron
A Helm chart for Kubernetes
About this chart
Introduction
Helm chart to run migration using migrate/migrate for a target cluster , which is added on devtron UI.
This helm chart create a k8s job which connect with database and run sql query from git repo for target cluster in particular database.
Install with Helm
Run the following command to install the latest version of incluster migration integration:
helm repo add devtron https://helm.devtron.ai
helm install my-db-migration devtron/migrant \
--set database_credentials.db_host=db-service --set database_credentials.db_port="1433" --set database_credentials.db_password=db-secret-pass --set database_credentials.db_type="mysql" --set database_credentials.db_user=admin
Here put database_credentials and the git repo url for git cloning
For diffrent source code management tool eg. bitbucket, gitlab
we need to add url based on them, as we only run git clone <repo-url> command, thus put the url accordingly.
Deploy migrant with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has migrant on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmigrant is pinned at v0.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply