laravel

by Helm

Helm chartv14.5.18App 1.0.0

Chart for deploying laravel under an ingress controller

About this chart

Laravel Helm chart

This chart is designed to be used to deploy a Laravel service.

Deployment

Once your changes are merged to master, Jenkins automatically tags the new version based on the .version property of the Chart.yaml. Then, the tag is pushed to BitBucket and the new chart version is pushed to softonic's Chart Museum.

Usage

If you want to use this you need to add this chart as requirement in your application chart.

requirements.yaml

dependencies:
  - name: laravel
    version: 8.6.0
    repository: "@softonic"

From your project you just need to add some specific values for the laravel chart, you need to indent it under laravel section.

values.yaml

laravel:
  php:
    ...
  web:
    ...

Test usage

If you want to test changes in the chart you could use a values-test.yaml file, which won't be committed to the repos.

You can also test the templates with the values-ci.yaml file.

helm template -f values.yaml -f ci/values-ci.yaml --namespace test-deleteme test-deleteme .

And for deploy it just execute the command:

helm upgrade --debug --install -f values-test.yaml --namespace test-deleteme test-deleteme .

And it should end up with the defined image deployed.

Deploy laravel with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has laravel 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlaravel is pinned at v14.5.18 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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