app-blueprint
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
| Value | Default | Description |
|---|---|---|
replicaCount | 1 | Replicas when HPA is disabled |
image.repository | nginxinc/nginx-unprivileged | Application image repository |
image.tag | 1.27-alpine | Application image tag |
image.digest | "" | Optional immutable SHA-256 digest |
container.ports | HTTP 8080 | Named application ports |
configMap.create | false | Create non-sensitive environment data |
secret.existingSecret | "" | Existing application Secret |
service.enabled | true | Create a Service |
ingress.enabled | false | Create an Ingress |
probes.* | readiness/liveness enabled | Native Kubernetes probes |
autoscaling.enabled | false | Create an autoscaling/v2 HPA |
podDisruptionBudget.enabled | false | Create a PDB |
persistence.enabled | false | Mount a new or existing PVC |
migration.enabled | false | Run a migration Job |
networkPolicy.enabled | false | Create 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartapp-blueprint is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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