lagoon-build-deploy
by uselagoon
A Helm chart for Kubernetes which installs Lagoon remote controllers which are used for handling build and task pods (https://github.com/uselagoon/remote-controller).
About this chart
Lagoon Remote Controller
This chart installs the Lagoon Remote Controller.
Configuration
See the comments in values.yaml, and the Lagoon Remote Controller repository.
Install
For simple use of Lagoon, you shouldn't install this chart directly. Instead it is configured as a dependency of the Lagoon Remote chart.
Custom Resource Definitions (CRDs)
When additions or changes are made to the CRDs, you will need to install the changes before installing the newer chart version.
lagoon-remote
If you're installing lagoon-remote you can use the following to update or install the latest CRDs
helm show crds lagoon/lagoon-build-deploy --version \
$(curl -s "https://raw.githubusercontent.com/uselagoon/lagoon-charts/lagoon-remote-${LAGOON_REMOTE_CHART_VERSION}/charts/lagoon-remote/Chart.lock" \
| grep -A2 "lagoon-build-deploy" \
| grep "version" \
| awk '{print $2}')
lagoon-build-deploy
If you're installing lagoon-build-deploy as its own component, then the following can be used
helm show crds lagoon/lagoon-build-deploy --version ${LAGOON_BUILD_DEPLOY_CHART_VERSION}
ServiceAccounts
This chart installs a single service account with a cluster-admin ClusterRoleBinding.
Deploy lagoon-build-deploy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lagoon-build-deploy 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 chartlagoon-build-deploy is pinned at v0.43.1 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