helm-compose
by NoUseFreak
Docker compose for Kubernetes
About this chart
helm-compose
TL;DR;
helm repo add nousefreak https://nousefreak.github.io/helm-charts
helm install my-release nousefreak/helm-compose
Introduction
- https://github.com/NoUseFreak/helm-compose
- https://github.com/NoUseFreak/helm-charts
Prerequisites
- Kubernetes 1.19+
Installing the Chart
To install the chart with the release name my-release:
helm repo add nousefreak https://nousefreak.github.io/helm-charts
helm install my-release nousefreak/helm-compose
These commands deploy helm-compose on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following tables list the configurable parameters of the helm-compose chart and their default values.
| Key | Type | Default | Description |
|---|---|---|---|
| services.db.command | string | "--default-authentication-plugin=mysql_native_password" | |
| services.db.environment[0] | string | "MYSQL_ROOT_PASSWORD=somewordpress" | |
| services.db.environment[1] | string | "MYSQL_DATABASE=wordpress" | |
| services.db.environment[2] | string | "MYSQL_USER=wordpress" | |
| services.db.environment[3] | string | "MYSQL_PASSWORD=wordpress" | |
| services.db.expose[0] | int | 3306 | |
| services.db.expose[1] | int | 33060 | |
| services.db.image | string | "mariadb:10.6.4-focal" | |
| services.db.restart | string | "always" | |
| services.db.volumes[0] | string | "db_data:/var/lib/mysql" | |
| volumes.db_data | string | nil |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
helm install my-release -f values.yaml nousefreak/helm-compose
Deploy helm-compose with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has helm-compose 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 charthelm-compose is pinned at v0.1.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