license-server

by Loft Labs, Inc.

Helm chartv0.6.1App 0.6.1Verified publisher

A Helm chart for Loft License Server

About this chart

License Server Helm Chart

This chart guide documents the offline license key setup and uses existingSecret for all sensitive configuration.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+

Secret Keys Used by the Chart

Create a Kubernetes secret that contains:

  • offline-license-key
  • postgres-password (required when postgresql.enabled=true)
  • postgres-dsn (required when postgresql.enabled=false)

Install with Embedded PostgreSQL (using existingSecret)

  1. Create the secret in your target namespace:
kubectl create secret generic license-server-config \
  --namespace license-server \
  --from-literal=postgres-password='my-password' \
  --from-literal=offline-license-key='<your-offline-license-key>'
  1. Install the chart with embedded PostgreSQL enabled and secret reuse:
helm install license-server license-server \
  --repo https://charts.loft.sh \
  --namespace license-server \
  --set postgresql.enabled=true \
  --set existingSecret=license-server-config

Install with External PostgreSQL (using existingSecret)

  1. Create the secret in your target namespace:
kubectl create secret generic license-server-config \
  --namespace license-server \
  --from-literal=postgres-dsn='postgres://<user>:<password>@<host>:5432/license_server?sslmode=require' \
  --from-literal=offline-license-key='<your-offline-license-key>'
  1. Install the chart with embedded PostgreSQL disabled and secret reuse:
helm install license-server license-server \
  --repo https://charts.loft.sh \
  --namespace license-server \
  --set postgresql.enabled=false \
  --set existingSecret=license-server-config

Uninstall

helm uninstall license-server --namespace license-server

Deploy license-server with OpenTenant

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