generic-helm

by audacioustux

Helm chartv1.0.1Verified publisher

Chart to deploy any YAML file

About this chart

Generic Helm Chart

Add repository

helm repo add kubeplane https://audacioustux.github.io/kubeplane

Install chart

helm install my-generic-helm kubeplane/generic-helm

my-generic-helm corresponds to the release name, feel free to change it to suit your needs. You can also add additional flags to the helm install command if you need to.

Usage

Simply define Kubernetes resources under the map or list keys in release values.

Example values.yaml

map:
  my-config-1:
    apiVersion: v1
    kind: ConfigMap
    # metadata.name: my-config-1 is inferred from the key
    data:
      key1: value1

  my-secret-1:
    apiVersion: v1
    kind: Secret
    metadata:
      name: my-secret-1
    data:
      key1: value1
      key2: value2

list:
  - apiVersion: v1
    kind: ConfigMap
    # metadata.name: {RELEASE-NAME}-{HASH(manifest)} is inferred from the manifest
    data:
      key1: value1

  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: my-config-2
    data:
      key1: value1

Deploy generic-helm with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has generic-helm 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 chartgeneric-helm is pinned at v1.0.1 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