strapi
by HelmForge
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
ingressClassNameand 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
/_healthfor 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
| Key | Default | Description |
|---|---|---|
image.repository | helmforge/strapi-base | Container image for the Strapi project |
image.tag | 5.61.0 | HelmForge Strapi base image version |
strapi.url | "" | Public URL (auto-detected from ingress if empty) |
strapi.port | 1337 | Container port |
strapi.telemetryDisabled | true | Disable telemetry |
database.mode | auto | Database mode (auto, sqlite, external, postgresql, mysql) |
database.sqlite.directory | /opt/app/.tmp | SQLite directory |
database.sqlite.filename | data.db | SQLite filename |
database.external.vendor | postgres | External DB vendor (postgres, mysql) |
database.external.host | "" | External DB host |
postgresql.enabled | true | Deploy PostgreSQL subchart |
mysql.enabled | false | Deploy MySQL subchart |
persistence.enabled | true | Enable uploads and SQLite persistence |
persistence.size | 5Gi | PVC size |
ingress.enabled | false | Enable ingress |
backup.enabled | false | Enable S3 backups |
secrets.existingSecret | "" | Use an existing secret for Strapi app secrets |
Resources Generated
| Resource | Condition |
|---|---|
| Deployment | Always |
| Service | Always |
| 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 |
| PVC | persistence.enabled and no persistence.existingClaim |
| Ingress | ingress.enabled |
| ServiceAccount | serviceAccount.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.ingressClassNameto the class used in your cluster, such astraefik,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
| Framework | Score |
|---|---|
| MITRE + NSA + SOC2 | 87.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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartstrapi is pinned at v2.3.21 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