typo3
TYPO3 — the Professional, Flexible Content Management System
About this chart
typo3
TYPO3 — the Professional, Flexible Content Management System
TL;DR;
helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/typo3
Or install it from the OCI registry:
helm install my-release oci://ghcr.io/christianhuth/helm-charts/typo3
Introduction
This chart bootstraps the Content Management System TYPO3 using the Helm package manager.
Prerequisites
- Kubernetes 1.26+
- The mariadb-operator if the bundled MariaDB database is used (
mariadb.enabled: true, the default)
Installing the mariadb-operator
The chart bundles the database as a custom resource of the mariadb-operator (via the upstream chart mariadb-cluster). The operator itself is not part of this chart, as it is installed once per Kubernetes cluster:
helm upgrade --install mariadb-operator-crds oci://ghcr.io/mariadb-operator/charts/mariadb-operator-crds --namespace mariadb-operator --create-namespace
helm upgrade --install mariadb-operator oci://ghcr.io/mariadb-operator/charts/mariadb-operator --namespace mariadb-operator --wait
Installing the Chart
To install the chart with the release name my-release:
helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/typo3
The chart is also published as an OCI artifact which can be installed like this:
helm install my-release oci://ghcr.io/christianhuth/helm-charts/typo3
These commands deploy typo3 on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the my-release deployment:
helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuring TYPO3
The chart uses the crinis/typo3 image for non-Composer ("legacy") TYPO3 projects, which ships the TYPO3 sources. TYPO3 runs rootless as www-data and listens on port 8080.
On the first start, i.e. if typo3conf/system/settings.php does not exist yet, TYPO3 is set up automatically with the database and the admin user configured in the values (typo3.setup, typo3.admin). Use typo3.setup.createSite to create a site for a given URL during the setup. On every start, an init container updates the database connection in typo3conf/system/settings.php from the values (typo3.modifyConfiguration), so changing the database or its password needs no manual change of the TYPO3 configuration. The admin password has to satisfy the password policy of TYPO3, a random one is generated if none is given:
kubectl create secret generic typo3-admin --from-literal=password='<password>'
typo3:
admin:
username: admin
email: [email protected]
existingSecret: typo3-admin
Set typo3.scheduler.enabled to run the TYPO3 scheduler every five minutes in a sidecar container. Uploaded files (fileadmin) and the configuration including extensions (typo3conf) are persisted in PersistentVolumeClaims (persistence.*).
Configuring the Database
The image supports MariaDB and MySQL.
Bundled MariaDB with an existing Secret (recommended)
kubectl create secret generic typo3-database --from-literal=password='<password>'
mariadb:
mariadb:
passwordSecretKeyRef:
name: typo3-database
key: password
generate: false
If no Secret is referenced, the operator generates a random password and stores it in the Secret <release>-mariadb-password. By default the database runs as a Galera cluster with 3 instances. To upgrade to another MariaDB release series, change the tag of mariadb.mariadb.image; the operator migrates the system schema, but downgrades are not supported. See the values of the upstream chart for all options.
External MariaDB or MySQL
mariadb:
enabled: false
externalDatabase:
hostname: mariadb.example.com
port: 3306
database: typo3
username: typo3
existingSecret: typo3-database
existingSecretPasswordKey: password
Instead of externalDatabase.existingSecret you can set externalDatabase.password, which lets the chart create the Secret.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity settings for pod assignment |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| deploymentStrategy | object | {} | Update strategy for the deployment. Set type: Recreate if the persistence uses ReadWriteOnce volumes, as a rolling update starts the new Pod before stopping the old one and it can't mount the volume on another node. |
| externalDatabase.database | string | "typo3" | Name of the database to use |
| externalDatabase.existingSecret | string | "" | Name of an existing Secret containing the password of the user |
| externalDatabase.existingSecretPasswordKey | string | "password" | Key in the existing Secret containing the password |
| externalDatabase.hostname | string | "" | Hostname of the external MariaDB or MySQL database. Used if mariadb.enabled is false. |
| externalDatabase.password | string | "" | Password of the user. Ignored if externalDatabase.existingSecret is set. |
| externalDatabase.port | int | 3306 | Port of the external database |
| externalDatabase.username | string | "typo3" | Name of the user to use |
| fullnameOverride | string | "" | String to fully override "typo3.fullname" |
| image.pullPolicy | string | "Always" | image pull policy |
| image.registry | string | "docker.io" | image registry |
| image.repository | string | "crinis/typo3" | image repository |
| image.tag | string | "legacy-13.4.40" | Overrides the image tag |
| imagePullSecrets | list | [] | If defined, uses a Secret to pull an image from a private Docker registry or repository. |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| livenessProbe.failureThreshold | int | 3 | Failure threshold for livenessProbe |
| livenessProbe.httpGet.path | string | "/typo3/" | Path for livenessProbe |
| livenessProbe.initialDelaySeconds | int | 0 | Initial delay seconds for livenessProbe |
| livenessProbe.periodSeconds | int | 10 | Period seconds for livenessProbe |
| livenessProbe.successThreshold | int | 1 | Success threshold for livenessProbe |
| livenessProbe.timeoutSeconds | int | 5 | Timeout seconds for livenessProbe |
| mariadb.enabled | bool | true | Enable a MariaDB instance managed by the mariadb-operator. Requires the operator to be installed in the cluster (see README). |
| mariadb.mariadb.database | string | "typo3" | Name of the database to create |
| mariadb.mariadb.galera.enabled | bool | true | Enable Galera to run multiple instances |
| mariadb.mariadb.image | string | "mariadb:12.3" | MariaDB image. The tag only pins the release series (12.3 is the current long-term support release), so restarted instances get its latest patch version. |
| mariadb.mariadb.imagePullPolicy | string | "Always" | Pull the image on every start to get the latest patch version of the release series |
| mariadb.mariadb.passwordSecretKeyRef.generate | bool | true | Let the operator generate the Secret with a random password if it does not exist |
| mariadb.mariadb.passwordSecretKeyRef.key | string | "password" | Key of the password inside the Secret |
| mariadb.mariadb.passwordSecretKeyRef.name | string | "" | Name of an existing Secret containing the password of the user. If empty, the Secret <release>-mariadb-password is used. |
| mariadb.mariadb.replicas | int | 3 | Number of MariaDB instances. More than one instance requires Galera or replication. |
| mariadb.mariadb.storage.size | string | "8Gi" | Size of the PVC of each instance |
| mariadb.mariadb.updateStrategy.mariadbAutoUpgradeEnabled | bool | true | Run mariadb-upgrade on start, so that changing the release series in image migrates the system schema. It is a no-op if there is nothing to migrate. |
| mariadb.mariadb.username | string | "typo3" | Name of the user to create |
| nameOverride | string | "" | Provide a name in place of typo3 |
| nodeSelector | object | {} | Node labels for pod assignment |
| persistence.fileadmin.accessModes | list | ["ReadWriteOnce"] | the desired access modes the volume should have. |
| persistence.fileadmin.annotations | object | {} | Annotations to be added to the PersistentVolumeClaim |
| persistence.fileadmin.enabled | bool | true | use a PVC to persist fileadmin data |
| persistence.fileadmin.existingClaim | string | "" | provide an existing PersistentVolumeClaim |
| persistence.fileadmin.resources | object | {"requests":{"storage":"5Gi"}} | represents the minimum and maximum resources the volume should have. |
| persistence.fileadmin.storageClassName | string | "" | Name of the StorageClass required by the claim. |
| persistence.typo3conf.accessModes | list | ["ReadWriteOnce"] | the desired access modes the volume should have. |
| persistence.typo3conf.annotations | object | {} | Annotations to be added to the PersistentVolumeClaim |
| persistence.typo3conf.enabled | bool | true | use a PVC to persist typo3conf data |
| persistence.typo3conf.existingClaim | string | "" | provide an existing PersistentVolumeClaim |
| persistence.typo3conf.resources | object | {"requests":{"storage":"1Gi"}} | represents the minimum and maximum resources the volume should have. |
| persistence.typo3conf.storageClassName | string | "" | Name of the StorageClass required by the claim. |
| podAnnotations | object | {} | Annotations to be added to exporter pods |
| podSecurityContext | object | see values.yaml | pod-level security context. TYPO3 runs rootless as www-data (33) and listens on port 8080. The image expects the user to be a member of the root group (supplementalGroups), as /var/www/html belongs to it. |
| readinessProbe.failureThreshold | int | 3 | Failure threshold for readinessProbe |
| readinessProbe.httpGet.path | string | "/typo3/" | Path for readinessProbe |
| readinessProbe.initialDelaySeconds | int | 0 | Initial delay seconds for readinessProbe |
| readinessProbe.periodSeconds | int | 10 | Period seconds for readinessProbe |
| readinessProbe.successThreshold | int | 1 | Success threshold for readinessProbe |
| readinessProbe.timeoutSeconds | int | 5 | Timeout seconds for readinessProbe |
| replicaCount | int | 1 | Number of replicas |
| resources | object | {} | Resource limits and requests for the headwind pods. |
| revisionHistoryLimit | int | 10 | The number of old ReplicaSets to retain |
| route.main.additionalRules | list | [] | Additional custom rules that can be added to the route |
| route.main.annotations | object | {} | Add annotations to the route |
| route.main.apiVersion | string | "gateway.networking.k8s.io/v1" | Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2 |
| route.main.enabled | bool | false | Enables or disables the route |
| route.main.filters | list | [] | Filters define the filters that are applied to requests that match this rule. |
| route.main.hostnames | list | [] | Hostnames to be matched |
| route.main.httpsRedirect | bool | false | adds a filter for redirecting to https (HTTP 301 Moved Permanently). To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners. Matches and filters do not take effect if enabled. Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/ |
| route.main.kind | string | "HTTPRoute" | Set the route kind Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute |
| route.main.labels | object | {} | Add labels to the route |
| route.main.matches | list | see values.yaml | define conditions used for matching the rule against incoming HTTP requests. |
| route.main.parentRefs | list | [] | Parent references (Gateway) |
| route.main.timeouts | object | {} | defines the timeouts that can be configured for an HTTP request |
| securityContext | object | see values.yaml | container-level security context |
| service.port | int | 8080 | Kubernetes port where service is exposed |
| service.type | string | "ClusterIP" | Kubernetes service type |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| startupProbe.failureThreshold | int | 60 | Failure threshold for startupProbe |
| startupProbe.httpGet.path | string | "/typo3/" | Path for startupProbe |
| startupProbe.initialDelaySeconds | int | 10 | Initial delay seconds for startupProbe |
| startupProbe.periodSeconds | int | 10 | Period seconds for startup |
Deploy typo3 with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has typo3 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 charttypo3 is pinned at v8.0.8 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