typemill
by CodeOpsMS
Helm chart for Typemill - a lightweight open-source flat-file CMS for creating websites and eBooks from Markdown.
About this chart
Typemill Helm Chart
A Helm chart for deploying Typemill on Kubernetes — a lightweight open-source flat-file CMS for creating websites and eBooks from Markdown.
Introduction
Typemill is a flat-file CMS that stores content as Markdown files. It requires no database
and is ideal for documentation sites, knowledge bases, and eBook publishing. This chart
deploys Typemill using the official kixote/typemill
Docker image.
Prerequisites
- Kubernetes >= 1.19
- Helm >= 3.8
- Linux/amd64 nodes for the upstream Typemill v2.28.2 image
- (Optional) An Ingress controller for external access
- (Optional) A StorageClass for persistent storage
Installation
Add the Helm repository
helm repo add typemill https://codeopsms.github.io/typemill-helm-chart/
helm repo update
Minimal installation
helm install my-typemill typemill/typemill
Installation with Ingress
helm install my-typemill typemill/typemill \
--set ingress.enabled=true \
--set ingress.className=nginx \
--set "ingress.hosts[0].host=docs.example.com" \
--set "ingress.hosts[0].paths[0].path=/" \
--set "ingress.hosts[0].paths[0].pathType=Prefix"
Installation with Ingress and TLS
helm install my-typemill typemill/typemill \
--set ingress.enabled=true \
--set ingress.className=nginx \
--set "ingress.hosts[0].host=docs.example.com" \
--set "ingress.hosts[0].paths[0].path=/" \
--set "ingress.hosts[0].paths[0].pathType=Prefix" \
--set "ingress.tls[0].secretName=typemill-tls" \
--set "ingress.tls[0].hosts[0]=docs.example.com" \
--set ingress.annotations."cert-manager\.io/cluster-issuer"=letsencrypt-prod
Installation with custom values file
helm install my-typemill typemill/typemill -f my-values.yaml
Configuration
The following table lists the configurable parameters of the Typemill chart and their default values.
General
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of replicas; Typemill supports exactly one | 1 |
image.repository | Container image repository | kixote/typemill |
image.pullPolicy | Image pull policy | IfNotPresent |
image.tag | Image tag (defaults to Chart appVersion) | "" |
image.digest | Immutable image digest; overrides tag when set | pinned; see values.yaml |
imagePullSecrets | Image pull secrets | [] |
nameOverride | Override chart name | "" |
fullnameOverride | Override full release name | "" |
Service Account
| Parameter | Description | Default |
|---|---|---|
serviceAccount.create | Create a ServiceAccount | true |
serviceAccount.annotations | ServiceAccount annotations | {} |
serviceAccount.name | ServiceAccount name | "" |
serviceAccount.automountServiceAccountToken | Auto-mount token | false |
Pod Configuration
| Parameter | Description | Default |
|---|---|---|
podAnnotations | Pod annotations | {} |
podLabels | Pod labels | {} |
podSecurityContext | Pod security context | {} |
securityContext | Container security context | {} |
terminationGracePeriodSeconds | Termination grace period | 60 |
strategy.type | Deployment strategy; only Recreate is supported | Recreate |
Service
| Parameter | Description | Default |
|---|---|---|
service.type | Service type (ClusterIP, NodePort, or LoadBalancer) | ClusterIP |
service.port | Service port | 80 |
Ingress
| Parameter | Description | Default |
|---|---|---|
ingress.enabled | Enable ingress | false |
ingress.className | Ingress class name | "" |
ingress.annotations | Ingress annotations | {} |
ingress.hosts | Ingress hosts configuration | see values.yaml |
ingress.tls | Ingress TLS configuration | [] |
AI Configuration
| Parameter | Description | Default |
|---|---|---|
ai.enabled | Enable initial Typemill AI configuration bootstrap | false |
ai.adapter | AI adapter (openai, openai-responses, anthropic, or none) | openai |
ai.baseUrl | AI provider base URL; defaults to the adapter cloud endpoint when empty | "" |
ai.model | AI model name as expected by the provider; defaults to a provider-specific model when empty | "" |
ai.providerName | Provider name shown to Typemill users | "" |
ai.providerTerms | Provider terms URL shown to Typemill users; stays empty when unset | "" |
ai.existingSecret | Existing Secret containing the provider API key; optional for local providers | "" |
ai.secretKeys.apiKey | Secret key name for provider API key | aiApiKey |
ai.secretKeys.chatgptKey | Deprecated legacy secret key name for OpenAI/ChatGPT API key | chatgptKey |
ai.secretKeys.claudeKey | Deprecated legacy secret key name for Anthropic/Claude API key | claudeKey |
ai.service | Deprecated legacy AI service value; use ai.adapter instead | "" |
ai.chatgptModel | Deprecated legacy ChatGPT/OpenAI model value; use ai.model instead | gpt-4.1 |
ai.claudeModel | Deprecated legacy Claude model value; use ai.model instead | claude-sonnet-4-5 |
ai.temperature | Quoted decimal from 0 to 1; "" omits temperature from provider requests | "0.7" |
ai.outputTokens | Output token limit: 2000, 4000, 6000, 8000, 10000, 12000, 16000, 20000, 32000, 64000, or 128000 | 4000 |
ai.timeoutSeconds | AI provider request timeout in seconds | 120 |
ai.reasoningEffort | Reasoning effort for compatible OpenAI-style models ("", none, low, medium, high) | "" |
ai.initContainer.image.repository | yq image used for YAML bootstrap | mikefarah/yq |
ai.initContainer.image.tag | yq image tag | 4.54.1 |
ai.initContainer.image.digest | Immutable yq image digest; overrides tag when set | pinned; see values.yaml |
ai.initContainer.securityContext | Init container security context | {"runAsGroup":0,"runAsUser":0} |
ai.initContainer.resources | Init container resource requests/limits | {} |
Resources & Autoscaling
| Parameter | Description | Default |
|---|---|---|
resources | CPU/Memory resource requests/limits | {} |
autoscaling.enabled | Deprecated and unsupported; must remain disabled | false |
autoscaling.minReplicas | Minimum replicas | 1 |
autoscaling.maxReplicas | Maximum replicas | 10 |
autoscaling.targetCPUUtilizationPercentage | Target CPU utilization | 80 |
Scheduling
| Parameter | Description | Default |
|---|---|---|
nodeSelector | Node selector constraints | {} |
tolerations | Tolerations | [] |
affinity | Affinity rules | {} |
Security migrations
| Parameter | Description | Default |
|---|---|---|
securityMigrations.cyanineV226.enabled | Update unchanged persisted Cyanine v2.24.2/v2.25 files to the v2.26 security-fixed versions | true |
securityMigrations.cyanineV226.failOnModified | Fail startup whenever affected files do not match verified stock hashes | false |
securityMigrations.cyanineV226.image.repository | Dedicated v2.26 migration-source image repository | kixote/typemill |
securityMigrations.cyanineV226.image.tag | Dedicated migration-source image tag | v2.26.0 |
securityMigrations.cyanineV226.image.digest | Immutable migration-source digest; overrides its tag | pinned; see values.yaml |
securityMigrations.cyanineV226.image.pullPolicy | Migration-source image pull policy | IfNotPresent |
securityMigrations.cyanineV226.securityContext | Cyanine migration init-container security context | hardened; see values.yaml |
securityMigrations.cyanineV226.resources | Cyanine migration init-container resource requests/limits | {} |
Compatibility workarounds
| Parameter | Description | Default |
|---|---|---|
compatibility.cyanineV2271.enabled | Hash-guarded correction for v2.27.1/v2.28.0 only; skipped for natively fixed v2.28.1 and later | true |
Image digest pinning
The default Typemill image is pinned to the verified v2.28.2 manifest digest. When image.digest is set, it takes precedence over image.tag. To use a custom tag, clear the digest explicitly:
image:
repository: kixote/typemill
tag: v2.28.2
digest: ""
The dedicated Cyanine migration source, AI bootstrap, and Helm connectivity test use the
same pattern via securityMigrations.cyanineV226.image.digest,
ai.initContainer.image.digest, and tests.image.digest. Every default container image
is pinned to a verified OCI index digest.
Persistence
| Parameter | Description | Default |
|---|---|---|
persistence.enabled | Enable persistence | true |
persistence.storageClass | Storage class | "" |
persistence.accessMode | Writable PVC access mode (ReadWriteOnce or ReadWriteMany) | ReadWriteOnce |
persistence.size | PVC size | 5Gi |
persistence.existingClaim | Use existing PVC | "" |
persistence.retain | Retain a chart-managed PVC after Helm uninstall | true |
persistence.annotations | Additional chart-managed PVC annotations | {} |
Health Checks
| Parameter | Description | Default |
|---|---|---|
livenessProbe.enabled | Enable liveness probe | true |
livenessProbe.path | Liveness probe path | /tm/login |
livenessProbe.initialDelaySeconds | Initial delay | 15 |
livenessProbe.periodSeconds | Check interval | 10 |
livenessProbe.timeoutSeconds | Timeout per check | 5 |
livenessProbe.failureThreshold | Failures before restart | 3 |
readinessProbe.enabled | Enable readiness probe | true |
readinessProbe.path | Readiness probe path | /tm/login |
readinessProbe.initialDelaySeconds | Initial delay | 10 |
readinessProbe.periodSeconds | Check interval | 5 |
readinessProbe.timeoutSeconds | Timeout per check | 3 |
readinessProbe.failureThreshold | Failures before marking unready | 3 |
startupProbe.enabled | Enable startup probe | true |
startupProbe.path | Startup probe path | /tm/login |
startupProbe.failureThreshold | Failure threshold | 30 |
startupProbe.periodSeconds | Check interval during startup | 5 |
startupProbe.timeoutSeconds | Timeout per check | 3 |
Helm Test
| Parameter | Description | Default |
|---|---|---|
tests.enabled | Enable the hardened Helm connectivity test | true |
tests.image.repository | Connectivity test image repository | busybox |
tests.image.tag | Connectivity test image tag | 1.38.0 |
tests.image.digest | Immutable connectivity test image digest | sha256:fd7dc9... |
tests.image.pullPolicy | Connectivity test pull policy | IfNotPresent |
tests.resources | Connectivity test resource requests and limits | see values.yaml |
Run the test after installation or upgrade:
helm test my-typemill --logs
The completed test pod is retained so Helm can collect its logs. It is deleted automatically before the next test run; delete it manually if no further test is planned.
Typemill Configuration
| Parameter | Description | Default |
|---|---|---|
typemill.timezone | Container timezone | "UTC" |
typemill.proxyDetection | Force upstream Docker reverse-proxy detection; false stops the image-level force but does not override persisted settings | false |
typemill.phpIniConfig | PHP INI overrides (map of filename → content) | see values.yaml |
typemill.htaccess | Custom .htaccess content | "" |
Note: Plugin and theme installation is done via the Typemill admin UI at
/tm/pluginsand/tm/themes. Ensure theplugins/andthemes/directories are persisted via the PVC.
Typemill v2.26.1 enables reverse-proxy detection in its Docker image, but this chart
explicitly overrides that new default with typemill.proxyDetection=false so upgrades do
not unexpectedly begin trusting forwarded headers. A proxy: true value already persisted
in settings/settings.yaml remains active for backwards compatibility.
For an Ingress or another reverse proxy, set typemill.proxyDetection=true or enable proxy
mode in the admin UI, then configure the exact proxy source IPs under
Settings → System → Trusted IPs for proxies. Leaving the list empty trusts forwarded
headers from every source that can reach the pod. When Typemill is published below a
subpath, the proxy must also send X-Forwarded-Prefix with that path.
Typemill v2.26.1 accepts only exact IP literals in trustedproxies, separated by commas
without spaces; CIDRs, DNS names, and Kubernetes Service names are not supported. If the
Ingress source IPs are dynamic, provide a stable proxy source address or leave the list
empty only together with a NetworkPolicy that limits pod access to the Ingress controller
and a controller configuration that overwrites client-supplied forwarded headers.
Do not use correct-looking canonical URLs alone as proof that proxy detection works: a
persisted fqdn can make generated URLs appear correct while the request scheme is still
treated as HTTP. Verify the public login response sets
__Secure-typemill-session; Secure; HttpOnly; SameSite=Lax. A plain
typemill-session cookie without Secure means the immediate proxy source is not trusted;
session protection and X-Forwarded-Prefix handling are then ineffective. For an
HTTPS-only site, session.cookie_secure = 1 in `typ
Deploy typemill with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has typemill 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 charttypemill is pinned at v2.4.2 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