lagoon-remote
by uselagoon
A Helm chart to run a lagoon-remote
About this chart
Lagoon Remote
This chart installs the remote services for Lagoon. Install this chart into the cluster you want to deploy workloads to.
Configuration
None.
After this chart is installed, Lagoon needs to be configured to deploy to this cluster. This is outside the scope of this README.
Install
NOTE: This chart must be installed into the lagoon namespace because software that consumes lagoon services inside the cluster assumes that services are available at *.lagoon.svc.
helm upgrade --install --create-namespace --namespace lagoon lagoon-remote ./charts/lagoon-remote
OpenShift
the included docker-host needs privileged permissions:
oc -n lagoon adm policy add-scc-to-user privileged -z lagoon-remote-docker-host
Uninstall
helm uninstall lagoon-remote
ServiceAccounts
- The
kubernetesbuilddeployserviceaccount is bound tocluster-admin.
NATS
This section only applies if using NATS for ssh-portal support. NATS and ssh-portal are currently disabled by default.
Configuring NATS
The minimum configuration required to enable NATS is:
nats:
enabled: true
cluster:
name: lagoon-remote-example
Note that the cluster name used in Lagoon Core and each Lagoon Remote must be unique in order for NATS routing to work correctly.
Securing NATS
See the Lagoon Core chart README for instructions for securing NATS.
Deploy lagoon-remote with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lagoon-remote 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-remote is pinned at v0.107.2 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