casepack-spa

by sammyeby

Helm chartv0.36.0App 0.36.0ProprietaryVerified publisher

CasePack SPA — React frontend for incident reporting and evidence management for MSPs.

About this chart

CasePack SPA Helm Chart

Deploys the CasePack React SPA (Nginx-served static files) to Kubernetes.

Installing

helm install casepack-spa oci://ghcr.io/sammyeby/charts/casepack-spa \
  --namespace casepack --create-namespace \
  -f values-prod.yaml

Configuration

ParameterDescriptionDefault
replicaCountNumber of replicas1
image.repositoryDocker image repositoryghcr.io/sammyeby/casepack-spa
image.tagImage tag (defaults to appVersion)""
config.apiBaseUrlAPI base URL injected at runtime/api
config.oidcAuthorityOIDC issuer URL""
config.oidcClientIdOIDC client IDcasepack-spa
ingress.enabledEnable Ingressfalse
ingress.classNameIngress classnginx
ingress.hostsIngress host rules[]
ingress.tlsTLS configuration[]
autoscaling.enabledEnable HPAfalse
autoscaling.minReplicasMinimum replicas1
autoscaling.maxReplicasMaximum replicas3
resources.requests.cpuCPU request50m
resources.requests.memoryMemory request32Mi
resources.limits.cpuCPU limit200m
resources.limits.memoryMemory limit64Mi
nginxConfigComplete nginx default.conf to use instead of the image's own config (see below)""

Runtime Configuration

The Docker entrypoint generates /usr/share/nginx/html/config.js from environment variables at container startup. This allows the same image to be deployed across environments without rebuilding.

The SPA reads window.__RUNTIME_CONFIG__ for:

  • API_BASE_URL — backend API endpoint
  • OIDC_AUTHORITY — Keycloak realm URL
  • OIDC_CLIENT_ID — OIDC client identifier

Nginx Configuration

By default the pod runs the nginx config built into the casepack-spa image. It serves the prerendered marketing pages, falls back to the noindex app shell for app routes and unknown paths, sends the security and cache headers, and answers /healthz.

Setting nginxConfig replaces that whole config through a ConfigMap. Only do this if your config reproduces the same routing and headers.

Upgrading

To 0.34.1

config.licensingPortalUrl defaults to https://licensing.samuelumeh.com/portal, SamSoft's production licensing portal, instead of https://staging.licensing.bysam.io/portal. The SPA image is unchanged (0.34.0). Set the value if you point the SPA at another licensing portal.

To the release after 0.32.0

The chart no longer mounts its own nginx config by default. Earlier versions always replaced the image's config with a generic SPA fallback (try_files $uri $uri/ /index.html). Since the image started prerendering the marketing pages, that fallback served the landing page for every app route and unknown path, and dropped the image's no-cache and noindex headers. The security headers and /healthz that the chart's config provided are now part of the image. If you relied on the old ConfigMap, set nginxConfig explicitly. nginxConfig was previously ignored; it now takes effect.

Deploy casepack-spa with OpenTenant

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