gotenberg

by sammyeby

Helm chartv0.2.1App 8-chromiumMITVerified publisher

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

ParameterDescriptionDefault
replicaCountNumber of Gotenberg pods1
image.repositoryGotenberg image repositorygotenberg/gotenberg
image.tagGotenberg image tag8-chromium
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsImage pull secrets[]
nameOverrideOverride chart name""
fullnameOverrideOverride full release name""
service.typeKubernetes service typeClusterIP
service.portService port3000
service.annotationsService annotations{}
resources.requests.cpuCPU request250m
resources.requests.memoryMemory request512Mi
resources.limits.cpuCPU limit1
resources.limits.memoryMemory limit1Gi
securityContext.runAsUserContainer user ID1001
securityContext.allowPrivilegeEscalationAllow privilege escalationfalse
securityContext.privilegedRun privileged containerfalse
securityContext.readOnlyRootFilesystemMount root filesystem read-onlyfalse
securityContext.runAsNonRootRequire a non-root container usertrue
securityContext.capabilities.dropDropped Linux capabilities[ALL]
podSecurityContext.runAsNonRootRequire non-root pod executiontrue
podSecurityContext.seccompProfile.typePod seccomp profileRuntimeDefault
env.API_TIMEOUTRequest timeout60s
env.API_BODY_LIMITMultipart body limit50MB
env.API_DISABLE_DOWNLOAD_FROMDisable downloadFrom URL fetchingtrue
env.API_ENABLE_DEBUG_ROUTEEnable debug routefalse
env.CHROMIUM_MAX_CONCURRENCYChromium conversion concurrency2
env.CHROMIUM_MAX_QUEUE_SIZEChromium queue size20
env.CHROMIUM_CLEAR_CACHEClear Chromium cache after each conversiontrue
env.CHROMIUM_CLEAR_COOKIESClear Chromium cookies after each conversiontrue
env.WEBHOOK_DISABLEDisable webhook callbackstrue
podAnnotationsPod annotations{}
podLabelsPod labels{}
podSecurityContextPod security context{}
automountServiceAccountTokenMount service account token in podsfalse
livenessProbeContainer liveness probe/health on http
readinessProbeContainer readiness probe/health on http
startupProbeContainer startup probe/health on http
networkPolicy.enabledCreate a NetworkPolicytrue
networkPolicy.allowExternalAllow ingress to the HTTP port from any podfalse
networkPolicy.clientLabelsLabels required on same-namespace client pods when allowExternal=false{gotenberg-client: "true"}
networkPolicy.allowExternalEgressAllow all egress from Gotenberg podsfalse
networkPolicy.extraIngressAdditional NetworkPolicy ingress rules[]
networkPolicy.extraEgressAdditional NetworkPolicy egress rules[]
nodeSelectorNode selector for pods{}
tolerationsPod tolerations[]
affinityPod affinity rules{}
topologySpreadConstraintsPod 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.

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