strapi

by HelmForge

Helm chartv2.3.21App 5.61.0Apache-2.0Verified publisher

Strapi headless CMS with SQLite, MySQL, or PostgreSQL support, uploads persistence, and S3 backups

About this chart

Strapi Helm Chart

Deploy Strapi on Kubernetes as a headless CMS for APIs, websites, and custom admin experiences.

This chart is designed for a prebuilt Strapi project image. It does not build application source code inside the cluster.

Features

  • Production-ready base image — HelmForge's optimized Strapi image with all plugins included
  • SQLite by default for simple environments
  • PostgreSQL subchart bundled via HelmForge dependency
  • MySQL subchart bundled via HelmForge dependency
  • External database support for existing PostgreSQL or MySQL
  • Application secrets auto-generated and preserved across upgrades
  • Uploads persistence using a single PVC with dedicated subpaths
  • Scheduled backups for SQLite or database dump workflows with S3 upload
  • Ingress support with ingressClassName and TLS

HelmForge Base Image

This chart uses the official HelmForge Strapi base image (docker.io/helmforge/strapi-base:5.61.0) which provides:

  • Strapi 5.61.0 with all official plugins pre-installed
  • Multi-database support — SQLite, PostgreSQL, MySQL ready to use
  • Health check endpoint — HTTP health checks on /_health for proper Kubernetes integration
  • Security hardened — Non-root user (UID 1000), minimal attack surface
  • Multi-architecture — Supports both amd64 and arm64 platforms
  • Production optimized — Pre-built with best practices for Kubernetes deployments

You can use this base image directly for testing or extend it with your own Strapi project configuration.

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install strapi helmforge/strapi

OCI registry:

helm install strapi oci://ghcr.io/helmforgedev/helm/strapi

Basic Example (SQLite)

# values.yaml
image:
  repository: ghcr.io/example/my-strapi
  tag: "1.0.0"

persistence:
  enabled: true
  size: 5Gi

PostgreSQL Example

image:
  repository: ghcr.io/example/my-strapi
  tag: "1.0.0"

postgresql:
  enabled: true
  auth:
    database: strapi
    username: strapi
    password: "strong-password"

ingress:
  enabled: true
  ingressClassName: traefik
  hosts:
    - host: cms.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: strapi-tls
      hosts:
        - cms.example.com

External Database Example

image:
  repository: ghcr.io/example/my-strapi
  tag: "1.0.0"

database:
  external:
    vendor: postgres
    host: db.example.com
    name: strapi
    username: strapi
    existingSecret: strapi-db-credentials

Key Values

KeyDefaultDescription
image.repositoryhelmforge/strapi-baseContainer image for the Strapi project
image.tag5.61.0HelmForge Strapi base image version
strapi.url""Public URL (auto-detected from ingress if empty)
strapi.port1337Container port
strapi.telemetryDisabledtrueDisable telemetry
database.modeautoDatabase mode (auto, sqlite, external, postgresql, mysql)
database.sqlite.directory/opt/app/.tmpSQLite directory
database.sqlite.filenamedata.dbSQLite filename
database.external.vendorpostgresExternal DB vendor (postgres, mysql)
database.external.host""External DB host
postgresql.enabledtrueDeploy PostgreSQL subchart
mysql.enabledfalseDeploy MySQL subchart
persistence.enabledtrueEnable uploads and SQLite persistence
persistence.size5GiPVC size
ingress.enabledfalseEnable ingress
backup.enabledfalseEnable S3 backups
secrets.existingSecret""Use an existing secret for Strapi app secrets

Resources Generated

ResourceCondition
DeploymentAlways
ServiceAlways
Secret (app)secrets.existingSecret is empty
Secret (database)Database mode is not sqlite and no existing secret
Secret (backup)backup.enabled and no backup.s3.existingSecret
PVCpersistence.enabled and no persistence.existingClaim
Ingressingress.enabled
ServiceAccountserviceAccount.create
CronJob (backup)backup.enabled
ConfigMap (backup scripts)backup.enabled

Notes

  • The default image is helmforge/strapi-base:5.61.0, HelmForge's production-ready Strapi image. Override it if your deployment uses a custom Strapi build.
  • SQLite is supported for simple deployments, but server-based databases are recommended for production workloads.
  • Horizontal scaling is intentionally out of scope for this v1 chart because default local uploads persistence is single-writer oriented.
  • For ingress, set ingress.ingressClassName to the class used in your cluster, such as traefik, nginx, or another supported controller.

Upgrade Notes

Strapi 5.61.0 requires Node.js 22.19 or later; the HelmForge base image uses Node.js 22.23.4. The upgrade also includes Knex 3.3.0. Custom application code that calls delete() with limit or having, or truncate() with where, having, or limit, must follow the updated database-driver behavior.

Back up the database and uploads PVC before upgrading production workloads. Review custom upload configuration as sharp.limitInputPixels must be a number or boolean rather than a raw environment-variable string.

For standalone MySQL, use mysql.standalone.persistence. For replication, use mysql.replication.source.persistence and mysql.replication.readReplicas.persistence. The former mysql.primary.persistence parent value was not consumed by the HelmForge MySQL subchart.

Existing standalone releases therefore used the MySQL chart's effective claim template, normally 8Gi, even if a different size was set under mysql.primary.persistence. During the chart upgrade, keep mysql.standalone.persistence.size equal to that existing claim-template size; copying the intended size directly can make Kubernetes reject the immutable StatefulSet update. Resize or migrate the bound PVC separately according to the storage class, and only change the claim template through a planned StatefulSet recreation. Before recreating it, back up the database, set the existing StatefulSet's mysql.standalone.persistence.retentionPolicy.whenDeleted to Retain, and confirm that the StatefulSet owner reference has been removed from the PVC. Restore the desired retention policy after recreation if needed.

More Information

  • Database configuration
  • Backup and restore
  • Source code

Security Scan: strapi

FrameworkScore
MITRE + NSA + SOC287.57576%

Security posture acceptable.

Deploy strapi with OpenTenant

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