app-blueprint

by zainalsaputra

Helm chartv0.2.1App 1.27-alpineApache-2.0Verified publisher

A reusable, secure-by-default Helm chart for containerized web applications

About this chart

App Blueprint chart

Deploy a containerized web application using a Kubernetes Deployment.

Requirements

  • Helm 3.12 or newer
  • Kubernetes 1.27 or newer

Install

helm install my-app ./charts/app-blueprint \
  --set image.repository=ghcr.io/example/my-app \
  --set image.tag=1.0.0

Key values

ValueDefaultDescription
replicaCount1Replicas when HPA is disabled
image.repositorynginxinc/nginx-unprivilegedApplication image repository
image.tag1.27-alpineApplication image tag
image.digest""Optional immutable SHA-256 digest
container.portsHTTP 8080Named application ports
configMap.createfalseCreate non-sensitive environment data
secret.existingSecret""Existing application Secret
service.enabledtrueCreate a Service
ingress.enabledfalseCreate an Ingress
probes.*readiness/liveness enabledNative Kubernetes probes
autoscaling.enabledfalseCreate an autoscaling/v2 HPA
podDisruptionBudget.enabledfalseCreate a PDB
persistence.enabledfalseMount a new or existing PVC
migration.enabledfalseRun a migration Job
networkPolicy.enabledfalseCreate a NetworkPolicy
initContainers[]Native init container definitions
sidecars[]Native sidecar definitions
extraObjects[]Additional templated Kubernetes objects

Every value is documented in values.yaml and validated by values.schema.json.

ConfigMap and Secret

configMap:
  create: true
  data:
    LOG_LEVEL: info

secret:
  existingSecret: my-app-secrets

The generated ConfigMap and Secret receive checksum annotations on the pod template, causing a rollout when their contents change.

Custom probes

Probe bodies use native Kubernetes syntax:

probes:
  readiness:
    enabled: true
    httpGet:
      path: /health/ready
      port: http
  liveness:
    enabled: true
    tcpSocket:
      port: http

Migration

migration:
  enabled: true
  command: ["npm"]
  args: ["run", "migration:run"]

By default, migration runs as a pre-install,pre-upgrade Helm hook. Disable migration.hook.enabled when a GitOps controller should manage it as a regular Job.

Persistence

persistence:
  enabled: true
  mountPath: /app/data
  size: 5Gi

Set persistence.existingClaim to reuse a PVC. The chart does not create StorageClasses.

Upgrade safety

Chart versions follow Semantic Versioning. Breaking values changes require a new major chart version. Always inspect changes before upgrade:

helm diff upgrade my-app helm-app-blueprint/app-blueprint -f my-values.yaml

Deploy app-blueprint with OpenTenant

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