typemill

by CodeOpsMS

Helm chartv2.4.2App v2.28.2MIT

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

ParameterDescriptionDefault
replicaCountNumber of replicas; Typemill supports exactly one1
image.repositoryContainer image repositorykixote/typemill
image.pullPolicyImage pull policyIfNotPresent
image.tagImage tag (defaults to Chart appVersion)""
image.digestImmutable image digest; overrides tag when setpinned; see values.yaml
imagePullSecretsImage pull secrets[]
nameOverrideOverride chart name""
fullnameOverrideOverride full release name""

Service Account

ParameterDescriptionDefault
serviceAccount.createCreate a ServiceAccounttrue
serviceAccount.annotationsServiceAccount annotations{}
serviceAccount.nameServiceAccount name""
serviceAccount.automountServiceAccountTokenAuto-mount tokenfalse

Pod Configuration

ParameterDescriptionDefault
podAnnotationsPod annotations{}
podLabelsPod labels{}
podSecurityContextPod security context{}
securityContextContainer security context{}
terminationGracePeriodSecondsTermination grace period60
strategy.typeDeployment strategy; only Recreate is supportedRecreate

Service

ParameterDescriptionDefault
service.typeService type (ClusterIP, NodePort, or LoadBalancer)ClusterIP
service.portService port80

Ingress

ParameterDescriptionDefault
ingress.enabledEnable ingressfalse
ingress.classNameIngress class name""
ingress.annotationsIngress annotations{}
ingress.hostsIngress hosts configurationsee values.yaml
ingress.tlsIngress TLS configuration[]

AI Configuration

ParameterDescriptionDefault
ai.enabledEnable initial Typemill AI configuration bootstrapfalse
ai.adapterAI adapter (openai, openai-responses, anthropic, or none)openai
ai.baseUrlAI provider base URL; defaults to the adapter cloud endpoint when empty""
ai.modelAI model name as expected by the provider; defaults to a provider-specific model when empty""
ai.providerNameProvider name shown to Typemill users""
ai.providerTermsProvider terms URL shown to Typemill users; stays empty when unset""
ai.existingSecretExisting Secret containing the provider API key; optional for local providers""
ai.secretKeys.apiKeySecret key name for provider API keyaiApiKey
ai.secretKeys.chatgptKeyDeprecated legacy secret key name for OpenAI/ChatGPT API keychatgptKey
ai.secretKeys.claudeKeyDeprecated legacy secret key name for Anthropic/Claude API keyclaudeKey
ai.serviceDeprecated legacy AI service value; use ai.adapter instead""
ai.chatgptModelDeprecated legacy ChatGPT/OpenAI model value; use ai.model insteadgpt-4.1
ai.claudeModelDeprecated legacy Claude model value; use ai.model insteadclaude-sonnet-4-5
ai.temperatureQuoted decimal from 0 to 1; "" omits temperature from provider requests"0.7"
ai.outputTokensOutput token limit: 2000, 4000, 6000, 8000, 10000, 12000, 16000, 20000, 32000, 64000, or 1280004000
ai.timeoutSecondsAI provider request timeout in seconds120
ai.reasoningEffortReasoning effort for compatible OpenAI-style models ("", none, low, medium, high)""
ai.initContainer.image.repositoryyq image used for YAML bootstrapmikefarah/yq
ai.initContainer.image.tagyq image tag4.54.1
ai.initContainer.image.digestImmutable yq image digest; overrides tag when setpinned; see values.yaml
ai.initContainer.securityContextInit container security context{"runAsGroup":0,"runAsUser":0}
ai.initContainer.resourcesInit container resource requests/limits{}

Resources & Autoscaling

ParameterDescriptionDefault
resourcesCPU/Memory resource requests/limits{}
autoscaling.enabledDeprecated and unsupported; must remain disabledfalse
autoscaling.minReplicasMinimum replicas1
autoscaling.maxReplicasMaximum replicas10
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization80

Scheduling

ParameterDescriptionDefault
nodeSelectorNode selector constraints{}
tolerationsTolerations[]
affinityAffinity rules{}

Security migrations

ParameterDescriptionDefault
securityMigrations.cyanineV226.enabledUpdate unchanged persisted Cyanine v2.24.2/v2.25 files to the v2.26 security-fixed versionstrue
securityMigrations.cyanineV226.failOnModifiedFail startup whenever affected files do not match verified stock hashesfalse
securityMigrations.cyanineV226.image.repositoryDedicated v2.26 migration-source image repositorykixote/typemill
securityMigrations.cyanineV226.image.tagDedicated migration-source image tagv2.26.0
securityMigrations.cyanineV226.image.digestImmutable migration-source digest; overrides its tagpinned; see values.yaml
securityMigrations.cyanineV226.image.pullPolicyMigration-source image pull policyIfNotPresent
securityMigrations.cyanineV226.securityContextCyanine migration init-container security contexthardened; see values.yaml
securityMigrations.cyanineV226.resourcesCyanine migration init-container resource requests/limits{}

Compatibility workarounds

ParameterDescriptionDefault
compatibility.cyanineV2271.enabledHash-guarded correction for v2.27.1/v2.28.0 only; skipped for natively fixed v2.28.1 and latertrue

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

ParameterDescriptionDefault
persistence.enabledEnable persistencetrue
persistence.storageClassStorage class""
persistence.accessModeWritable PVC access mode (ReadWriteOnce or ReadWriteMany)ReadWriteOnce
persistence.sizePVC size5Gi
persistence.existingClaimUse existing PVC""
persistence.retainRetain a chart-managed PVC after Helm uninstalltrue
persistence.annotationsAdditional chart-managed PVC annotations{}

Health Checks

ParameterDescriptionDefault
livenessProbe.enabledEnable liveness probetrue
livenessProbe.pathLiveness probe path/tm/login
livenessProbe.initialDelaySecondsInitial delay15
livenessProbe.periodSecondsCheck interval10
livenessProbe.timeoutSecondsTimeout per check5
livenessProbe.failureThresholdFailures before restart3
readinessProbe.enabledEnable readiness probetrue
readinessProbe.pathReadiness probe path/tm/login
readinessProbe.initialDelaySecondsInitial delay10
readinessProbe.periodSecondsCheck interval5
readinessProbe.timeoutSecondsTimeout per check3
readinessProbe.failureThresholdFailures before marking unready3
startupProbe.enabledEnable startup probetrue
startupProbe.pathStartup probe path/tm/login
startupProbe.failureThresholdFailure threshold30
startupProbe.periodSecondsCheck interval during startup5
startupProbe.timeoutSecondsTimeout per check3

Helm Test

ParameterDescriptionDefault
tests.enabledEnable the hardened Helm connectivity testtrue
tests.image.repositoryConnectivity test image repositorybusybox
tests.image.tagConnectivity test image tag1.38.0
tests.image.digestImmutable connectivity test image digestsha256:fd7dc9...
tests.image.pullPolicyConnectivity test pull policyIfNotPresent
tests.resourcesConnectivity test resource requests and limitssee 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

ParameterDescriptionDefault
typemill.timezoneContainer timezone"UTC"
typemill.proxyDetectionForce upstream Docker reverse-proxy detection; false stops the image-level force but does not override persisted settingsfalse
typemill.phpIniConfigPHP INI overrides (map of filename → content)see values.yaml
typemill.htaccessCustom .htaccess content""

Note: Plugin and theme installation is done via the Typemill admin UI at /tm/plugins and /tm/themes. Ensure the plugins/ and themes/ 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttypemill is pinned at v2.4.2 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