kubedb-migrator
A Helm chart for Kubernetes
About this chart
Database Migrator
Database Migrator by AppsCodes - Community features for KubeDB by AppsCode
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/kubedb-migrator --version=v0.5.0
$ helm upgrade -i kubedb-migrator appscode/kubedb-migrator -n kubedb --create-namespace --version=v0.5.0
Introduction
This chart deploys a Database Migrator operator on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.20+
Installing the Chart
To install/upgrade the chart with the release name kubedb-migrator:
$ helm upgrade -i kubedb-migrator appscode/kubedb-migrator -n kubedb --create-namespace --version=v0.5.0
The command deploys a Database Migrator operator on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the kubedb-migrator:
$ helm uninstall kubedb-migrator -n kubedb
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the kubedb-migrator chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| replicaCount | 1 | |
| registryFQDN | Docker registry fqdn used to pull app related images. Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image} | ghcr.io |
| image.registry | Docker registry used to pull app container image | kubedb |
| image.repository | migrator-operator | |
| image.pullPolicy | IfNotPresent | |
| image.tag | Overrides the image tag whose default is the chart appVersion. | "" |
| imagePullSecrets | [] | |
| nameOverride | "" | |
| fullnameOverride | "" | |
| serviceAccount.create | Specifies whether a service account should be created | true |
| serviceAccount.annotations | Annotations to add to the service account | {} |
| serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | "" |
| podAnnotations | {} | |
| podLabels | {} | |
| podSecurityContext | {} | |
| securityContext | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}} | |
| service.type | ClusterIP | |
| service.port | 8081 | |
| resources | {} | |
| livenessProbe.httpGet.path | /healthz | |
| livenessProbe.httpGet.port | 8081 | |
| livenessProbe.httpGet.scheme | HTTP | |
| livenessProbe.initialDelaySeconds | 15 | |
| livenessProbe.periodSeconds | 20 | |
| readinessProbe.httpGet.path | /readyz | |
| readinessProbe.httpGet.port | 8081 | |
| readinessProbe.httpGet.scheme | HTTP | |
| readinessProbe.initialDelaySeconds | 5 | |
| readinessProbe.periodSeconds | 10 | |
| volumes | [] | |
| volumeMounts | [] | |
| nodeSelector | {} | |
| tolerations |
Deploy kubedb-migrator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubedb-migrator 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 chartkubedb-migrator is pinned at v0.5.0 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