common

by subshell GmbH

Helm chartv0.1.0Verified publisher

A Helm library chart providing shared helper templates

About this chart

This library chart holds common templates to be used in many charts.

Usage

To use this chart add it as dependency to your chart.

dependencies:
  - name: common
    version: "0.1.0"
    repository: "oci://ghcr.io/subshell/helm-charts/common"

Afterwards you need to run helm dependency build to add the actual chart to your local chart.

You can use parts of this chart by using include or template and provide a scope.

{{- include "common.httproutes" (dict "dot" . "labels" $labels) }}

Development

Keep in mind:

In the context of the named template, $ will refer to the scope you passed in and not some global scope.

See Helm documentation about Library Charts and Named templates

Deploy common with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has common 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 chartcommon is pinned at v0.1.0 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