gotenberg
Gotenberg is a Docker-powered stateless API for PDF files.
About this chart
FMJ Studios - Gotenberg Helm Chart
Gotenberg is an open-source, Docker-powered stateless API for PDF files. It provides a developer friendly API to interact with powerful tools like Chromium and LibreOffice for converting numerous document formats (HTML, Markdown, Word, Excel, etc.) into PDF files and more. It delivers all of these features within a single Docker image available on Docker Hub.
Head to the Gotenberg Homepage for in-depth documentation and configuration guides.
✨ TL;DR
Helm Repository Installation
helm repo add fmjstudios https://fmjstudios.github.io/helm
helm install gotenberg fmjstudios/gotenberg --version X.Y.Z
OCI Installation
helm install oci://ghcr.io/fmjstudios/helm/gotenberg:X.Y.Z
Introduction
This chart bootstraps a Gotenberg Deployment on a Kubernetes cluster using the Helm package manager. For cluster networking a Service and Ingress manifest is also created, whereas the Ingress needs to be explicitly enabled. Lastly the chart configures a PodDisruptionBudget and HorizontalPodAutoscaler if enabled. RBAC manifests are enabled by default.
The chart supports the configuration of all Gotenberg CLI options via
the gotenberg key in Helm's values and makes use of the official Docker Hub container image, although this is
configurable via the Image Parameters.
Parameters
Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | The Docker registry to pull the image from | docker.io |
image.repository | The registry repository to pull the image from | gotenberg/gotenberg |
image.tag | The image tag to pull | 8.7.0 |
image.digest | The image digest to pull | "" |
image.pullPolicy | The Kubernetes image pull policy | IfNotPresent |
image.pullSecrets | A list of secrets to use for pulling images from private registries | [] |
Name overrides
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override gotenberg.fullname | "" |
fullnameOverride | String to fully override gotenberg.fullname | "" |
Gotenberg Configuration parameters
| Name | Description | Value |
|---|---|---|
gotenberg.api.port | The port the API should listen on | 3000 |
gotenberg.api.tlsCertFile | Disable health check logging | "" |
gotenberg.api.tlsKeyFile | Disable health check logging | "" |
gotenberg.api.startTimeout | Set the time limit for the API to start | 30s |
gotenberg.api.timeout | Set the time limit for requests | 30s |
gotenberg.api.rootPath | Set the root path of the API | "/" |
gotenberg.api.traceHeader | Set the header name to use for identifying requests | "" |
gotenberg.api.disableHealthCheckLogging | Disable health check logging | false |
gotenberg.basicAuth.enabled | Enable basic authentication | false |
gotenberg.basicAuth.username | Set a username for HTTP Basic Auth | "" |
gotenberg.basicAuth.password | Set a password for HTTP Basic Auth | "" |
gotenberg.basicAuth.existingSecret | The name of an existing basic-auth secret | "" |
gotenberg.chromium.restartAfter | Number of conversions after which Chromium will auto-restart | 0 |
gotenberg.chromium.maxQueueSize | Maximum request queue size for Chromium | 0 |
gotenberg.chromium.autoStart | Automatically launch Chromium upon initialization if set to true | false |
gotenberg.chromium.startTimeout | Maximum duration to wait for Chromium to start or restart | 20s |
gotenberg.chromium.allowFileAccessFromFiles | Allow file:// URIs to read other file:// URIs | false |
gotenberg.chromium.allowInsecureLocalhost | Ignore TLS/SSL errors on localhost | false |
gotenberg.chromium.allowList | Set the allowed URLs for Chromium using a regular expression - defaults to 'All' | "" |
gotenberg.chromium.denyList | Set the denied URLs for Chromium using a regular expression | "" |
gotenberg.chromium.ignoreCertificateErrors | Ignore the certificate errors | false |
gotenberg.chromium.disableWebSecurity | Don't enforce the same-origin policy | false |
gotenberg.chromium.incognito | Start Chromium with incognito mode | false |
gotenberg.chromium.hostResolverRules | Set custom mappings to the host resolver | "" |
gotenberg.chromium.proxyServer | Set the outbound proxy server; this switch only affects HTTP and HTTPS requests | "" |
gotenberg.chromium.clearCache | Clear Chromium cache between each conversion | false |
gotenberg.chromium.clearCookies | Clear Chromium cookies between each conversion | false |
gotenberg.chromium.disableJavaScript | Disable JavaScript | false |
gotenberg.chromium.disableRoutes | Disable the routes | false |
gotenberg.libreOffice.restartAfter | Number of conversions after which LibreOffice will automatically restart | 10 |
gotenberg.libreOffice.maxQueueSize | Maximum request queue size for LibreOffice | 0 |
gotenberg.libreOffice.autoStart | Automatically launch LibreOffice upon initialization if set to true | false |
gotenberg.libreOffice.startTimeout | Maximum duration to wait for LibreOffice to start or restart | 20s |
gotenberg.libreOffice.disableRoutes | Disable the route | false |
gotenberg.pdf.engines | Set the PDF engines and their order - defaults to 'All' | "" |
gotenberg.pdf.disableRoutes | Disable the routes | false |
gotenberg.webhook.allowList | Set the allowed URLs for the webhook feature using a regular expression | "" |
gotenberg.webhook.denyList | Set the denied URLs for the webhook feature using a regular expression | "" |
gotenberg.webhook.errorAllowList | Set the allowed URLs in case of an error using a regular expression | "" |
gotenberg.webhook.errorDenyList | Set the denied URLs in case of an error using a regular expression | "" |
gotenberg.webhook.maxRetry | Set the maximum number of retries | 4 |
gotenberg.webhook.retryMinWait | Set the minimum duration to wait before trying to call the webhook again | 1s |
gotenberg.webhook.retryMaxWait | Set the maximum duration to wait before trying to call the webhook again | 30s |
gotenberg.webhook.clientTimeout | Set the time limit for requests to the webhook | 30s |
gotenberg.webhook.disable | Disable the webhook feature | false |
gotenberg.prometheus.collectInterval | Set the interval for collecting modules' metrics | 1s |
gotenberg.prometheus.namespace | Set the namespace of modules' metrics | gotenberg |
gotenberg.prometheus.disableCollect | Disable the collect of metrics | false |
gotenberg.prometheus.disableRouteLogging | Disable the route logging | false |
gotenberg.logging.format | Specify the format of logging | auto |
gotenberg.logging.level | Choose the level of logging detail | info |
gotenberg.logging.fieldsPrefix | Prepend a specified prefix to each field in the logs | "" |
gotenberg.shutdown.duration | Set the graceful shutdown duration | 30s |
Common Secret parameters
| Name | Description | Value |
|---|---|---|
secret.annotations | Common annotations for the SMTP, HIBP, Admin and Database secrets | {} |
secret.labels | Common extra labels for the SMTP, HIBP, Admin and Database secrets | {} |
Ingress parameters
| Name | Description | Value |
|---|---|---|
ingress.enabled | Whether to enable Ingress | false |
ingress.className | The IngressClass to use for the pod's ingress | "" |
ingress.whitelist | A comma-separated list of IP addresses to whitelist | "" |
ingress.annotations | Annotations for the Ingress resource | {} |
ingress.tls | A list of hostnames and secret names to use for TLS | [] |
ingress.hosts | A list of hosts for the Ingress resource | [] |
Service parameters
| Name | Description | Value |
|---|---|---|
service.type | The type of service to create | ClusterIP |
service.port | The port to use on the service | 80 |
service.nodePort | The Node port to use on the service | 30080 |
service.extraPorts | Extra ports to add to the service | [] |
service.annotations | Annotations for the service resource | {} |
service.labels | Labels for the service resource |
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.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