bentopdf
by kriegalex
A Helm chart for BentoPDF - a privacy-first, fully client-side PDF toolkit served as static files by nginx
About this chart
BentoPDF Chart
===========
A Helm chart for BentoPDF - a privacy-first, fully client-side PDF toolkit served as static files by nginx
Overview
BentoPDF is a privacy-first, fully client-side PDF toolkit. All processing
(merge, split, convert, OCR, sign, etc.) happens in the user's browser — no files
are ever uploaded and there is no server-side API. This Helm chart simply serves
the BentoPDF static assets from the official nginx-unprivileged-based image
(ghcr.io/alam00000/bentopdf-simple).
Installation
Installation via Helm
- Add the Helm chart repo
helm repo add k8s-charts https://kriegalex.github.io/k8s-charts/
- Inspect & modify the default values (optional)
helm show values k8s-charts/bentopdf > custom-values.yaml
- Install the chart
helm upgrade --install bentopdf k8s-charts/bentopdf -f custom-values.yaml
Features
- Client-Side PDF Toolkit: Static web app — all PDF processing runs in the browser
- Ingress Support: Optional ingress with optional TLS configuration
- Security Hardened: Runs as non-root user (UID/GID 101) following BentoPDF security best practices
Security
This chart follows the official BentoPDF security recommendations:
- Non-Root Execution: Container runs as user ID 101 (the
nginxuser of thenginx-unprivilegedbase image) - Port 8080: Uses a high port number to avoid requiring root privileges
- nginx-unprivileged: Based on the
nginx-unprivilegedimage for enhanced security - Principle of Least Privilege: Minimal container privileges with all capabilities dropped
- No Privilege Escalation:
allowPrivilegeEscalationis set to false
For more information about BentoPDF security features, see the official security documentation.
License
MIT
Values
The following table lists the configurable parameters of the BentoPDF chart and their default values.
| Key | Type | Default | Description |
|---|---|---|---|
| fullnameOverride | string | "" | String to fully override bentopdf.fullname template |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.repository | string | "ghcr.io/alam00000/bentopdf-simple" | Docker image repository for BentoPDF (uses nginx-unprivileged for enhanced security) |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion |
| imagePullSecrets | list | [] | Image pull secrets for private Docker registry |
| ingress.annotations | object | {} | Additional ingress annotations @example annotations: cert-manager.io/cluster-issuer: letsencrypt-prod |
| ingress.className | string | "" | Ingress class name |
| ingress.enabled | bool | false | Enable ingress resource |
| ingress.tls.enabled | bool | false | Enable TLS for ingress |
| ingress.tls.secretName | string | "-bentopdf-ingress-lets-encrypt" | Secret name for TLS certificate |
| ingress.url | string | "" | The URL for the ingress endpoint to point to the BentoPDF instance |
| livenessProbe.enabled | bool | true | Enable liveness probe |
| livenessProbe.failureThreshold | int | 3 | |
| livenessProbe.httpGet.path | string | "/" | |
| livenessProbe.httpGet.port | string | "http" | |
| livenessProbe.initialDelaySeconds | int | 30 | |
| livenessProbe.periodSeconds | int | 10 | |
| livenessProbe.timeoutSeconds | int | 5 | |
| nameOverride | string | "" | String to partially override bentopdf.fullname template |
| podAnnotations | object | {} | Annotations to add to pods |
| podSecurityContext.fsGroup | int | 101 | Group ID for filesystem access |
| podSecurityContext.runAsGroup | int | 101 | Group ID to run the pod |
| podSecurityContext.runAsNonRoot | bool | true | Run container as non-root user |
| podSecurityContext.runAsUser | int | 101 | User ID to run the pod |
| readinessProbe.enabled | bool | true | Enable readiness probe |
| readinessProbe.failureThreshold | int | 3 | |
| readinessProbe.httpGet.path | string | "/" | |
| readinessProbe.httpGet.port | string | "http" | |
| readinessProbe.initialDelaySeconds | int | 10 | |
| readinessProbe.periodSeconds | int | 5 | |
| readinessProbe.timeoutSeconds | int | 3 | |
| replicaCount | int | 1 | Number of pod replicas |
| resources | object | {"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | Resource limits and requests for BentoPDF |
| securityContext.allowPrivilegeEscalation | bool | false | Prevent privilege escalation |
| securityContext.capabilities.drop[0] | string | "ALL" | |
| securityContext.readOnlyRootFilesystem | bool | false | Allow write access to root filesystem |
| service.annotations | object | {} | Additional annotations for the service |
| service.port | int | 8080 | Kubernetes Service port |
| service.targetPort | int | 8080 | Container target port |
| service.type | string | "ClusterIP" | Kubernetes Service type |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.automountServiceAccountToken | bool | false | If the service account token should be auto mounted |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy bentopdf with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bentopdf 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 chartbentopdf is pinned at v2.0.0 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