gotenberg
by sammyeby
Minimal Gotenberg document conversion service chart
About this chart
Gotenberg Helm Chart
Minimal Helm chart for deploying Gotenberg as an internal Kubernetes document conversion service.
Quick Start
helm upgrade --install gotenberg ./gotenberg \
--namespace gotenberg \
--create-namespace
Defaults
This chart deploys one gotenberg/gotenberg:8-chromium replica behind a ClusterIP service on port 3000.
The defaults disable the debug route, disable downloadFrom, disable webhooks, clear Chromium cache and cookies between conversions, run the container as UID 1001 without privilege escalation, and create restrictive NetworkPolicies. No Ingress is rendered by this chart.
Parameters
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of Gotenberg pods | 1 |
image.repository | Gotenberg image repository | gotenberg/gotenberg |
image.tag | Gotenberg image tag | 8-chromium |
image.pullPolicy | Image pull policy | IfNotPresent |
imagePullSecrets | Image pull secrets | [] |
nameOverride | Override chart name | "" |
fullnameOverride | Override full release name | "" |
service.type | Kubernetes service type | ClusterIP |
service.port | Service port | 3000 |
service.annotations | Service annotations | {} |
resources.requests.cpu | CPU request | 250m |
resources.requests.memory | Memory request | 512Mi |
resources.limits.cpu | CPU limit | 1 |
resources.limits.memory | Memory limit | 1Gi |
securityContext.runAsUser | Container user ID | 1001 |
securityContext.allowPrivilegeEscalation | Allow privilege escalation | false |
securityContext.privileged | Run privileged container | false |
securityContext.readOnlyRootFilesystem | Mount root filesystem read-only | false |
securityContext.runAsNonRoot | Require a non-root container user | true |
securityContext.capabilities.drop | Dropped Linux capabilities | [ALL] |
podSecurityContext.runAsNonRoot | Require non-root pod execution | true |
podSecurityContext.seccompProfile.type | Pod seccomp profile | RuntimeDefault |
env.API_TIMEOUT | Request timeout | 60s |
env.API_BODY_LIMIT | Multipart body limit | 50MB |
env.API_DISABLE_DOWNLOAD_FROM | Disable downloadFrom URL fetching | true |
env.API_ENABLE_DEBUG_ROUTE | Enable debug route | false |
env.CHROMIUM_MAX_CONCURRENCY | Chromium conversion concurrency | 2 |
env.CHROMIUM_MAX_QUEUE_SIZE | Chromium queue size | 20 |
env.CHROMIUM_CLEAR_CACHE | Clear Chromium cache after each conversion | true |
env.CHROMIUM_CLEAR_COOKIES | Clear Chromium cookies after each conversion | true |
env.WEBHOOK_DISABLE | Disable webhook callbacks | true |
podAnnotations | Pod annotations | {} |
podLabels | Pod labels | {} |
podSecurityContext | Pod security context | {} |
automountServiceAccountToken | Mount service account token in pods | false |
livenessProbe | Container liveness probe | /health on http |
readinessProbe | Container readiness probe | /health on http |
startupProbe | Container startup probe | /health on http |
networkPolicy.enabled | Create a NetworkPolicy | true |
networkPolicy.allowExternal | Allow ingress to the HTTP port from any pod | false |
networkPolicy.clientLabels | Labels required on same-namespace client pods when allowExternal=false | {gotenberg-client: "true"} |
networkPolicy.allowExternalEgress | Allow all egress from Gotenberg pods | false |
networkPolicy.extraIngress | Additional NetworkPolicy ingress rules | [] |
networkPolicy.extraEgress | Additional NetworkPolicy egress rules | [] |
nodeSelector | Node selector for pods | {} |
tolerations | Pod tolerations | [] |
affinity | Pod affinity rules | {} |
topologySpreadConstraints | Pod topology spread constraints | [] |
Upgrading
0.2.1
Chart metadata only: the chart's source and maintainer now name SamSoft, and the chart is published at oci://ghcr.io/sammyeby/charts. The image and the values are unchanged.
0.2.0
The default NetworkPolicy is now restrictive. Same-namespace clients must carry gotenberg-client: "true" unless you set networkPolicy.allowExternal=true. Cross-namespace clients should be granted with networkPolicy.extraIngress. Default egress is DNS-only unless you set networkPolicy.allowExternalEgress=true.
Network Policy
networkPolicy.enabled defaults to true and networkPolicy.allowExternal defaults to false. Same-namespace client pods must carry:
gotenberg-client: "true"
Set networkPolicy.allowExternalEgress to false and provide networkPolicy.extraEgress when you want to restrict outbound traffic.
For a shared Gotenberg namespace, allow a specific client namespace with:
networkPolicy:
extraIngress:
- ports:
- port: http
protocol: TCP
from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: casepack-staging
podSelector:
matchLabels:
gotenberg-client: "true"
References
Deploy gotenberg with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gotenberg 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 chartgotenberg is pinned at v0.2.1 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