app-template

by alekc

Helm chartv3.0.0Apache-2.0Verified publisher

Generic Helm application scaffold backed by the alekc common library. Drop it in, set your image and values, get a production-ready Deployment, Service, Ingress, PVC, and more with no boilerplate.

About this chart

app-template

Generic Helm application scaffold backed by the alekc common library. Drop it in, set your image and values, get a production-ready Deployment, Service, Ingress, PVC, and more with no boilerplate.

A thin scaffold on top of the common library that gives you a fully-configured Kubernetes application from a single values.yaml. You get Deployment, Service, Ingress, PVC, RBAC, cert-manager Certificate, NetworkPolicy, and more -- all driven by values, no Kubernetes YAML to write yourself.

This chart is intentionally minimal. It contains no application-specific logic: just the loader wiring that activates the library. Clone it, rename it, and fill in your values.

Quick start

From the classic chart repository:

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-app alekc/app-template \
  --set image.repository=nginx \
  --set image.tag=1.27 \
  --set service.main.ports.main.port=80

Or directly from the OCI registry, no helm repo add needed:

helm install my-app oci://charts.alekc.dev/app-template --version 2.1.0 \
  --set image.repository=nginx \
  --set image.tag=1.27

Or with a values file:

helm install my-app alekc/app-template -f my-values.yaml

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/app-template --version 2.1.0 --verify --keyring pubring.gpg

What the common library gives you

FeatureValues key
Deployment / StatefulSet / DaemonSet / Job / CronJobworkload
ClusterIP / LoadBalancer / NodePort servicesservice
Ingress with Traefik + cert-manager integrationingress
Persistent volumespersistence
ConfigMaps and Secretsconfigmap, secret
RBAC (Role + RoleBinding or cluster-wide)rbac, serviceAccount
cert-manager Certificate resourcescertificate
CloudNativePG clusters with backupscnpg
NetworkPolicynetworkPolicy
Any raw Kubernetes manifestadditionalManifests

Full values reference: https://gitlab.com/alexander-chernov/helm/common/-/blob/master/values.yaml

Maintainers

NameEmailUrl
alekc[email protected]

Source Code

Requirements

RepositoryNameVersion
https://charts.alekc.devcommon39.0.3

Gotchas

  • fullnameOverride: by default the release name drives all resource names (helm install my-app -> resources named my-app). Set fullnameOverride to pin a fixed name regardless of the release name:

    fullnameOverride: "my-service"
    
  • The common library defaults to readOnlyRootFilesystem: true and runAsUser: 568. An image that writes to its own directories at startup (most stock upstream images) needs an override, see the common library's own contract and gotchas for the exact securityContext shape and the emptyDir scratch-space pattern.

  • This chart carries no application-specific defaults. Every value not explicitly set above falls through to common's own defaults, read its values reference (linked above) rather than this chart's, mostly-empty values.yaml.

Upgrade notes

No breaking changes yet, version tracks common's own releases as they land.

Values

KeyTypeDefaultDescription
fullnameOverridestring""Overrides the chart's fullname. Pin this to keep resource names stable regardless of the release name, see the README's fullnameOverride section.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"busybox"Container image repository. busybox is a placeholder, replace it.
image.tagstring"latest"Container image tag.
ingress.main.enabledboolfalseRenders an Ingress for the main service.
ingress.main.hostslist[{"host":"example.com","paths":[{"path":"/","pathType":"Prefix","service":{"name":"main","port":"main"}}]}]Ingress host and path rules.
persistence.config.accessModestring"ReadWriteOnce"PVC access mode.
persistence.config.enabledboolfalseRenders this volume.
persistence.config.mountPathstring"/mountPath"Where the main container mounts this volume.
persistence.config.sizestring"10Mi"PVC size.
persistence.config.targetSelectAllbooltrueMounts this volume on every container in the workload.
persistence.config.typestring"pvc"Volume type.
service.main.ports.main.portint3000Service port.

Deploy app-template with OpenTenant

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