bentopdf

by kriegalex

Helm chartv2.0.0App 2.8.5Verified publisher

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

  1. Add the Helm chart repo
helm repo add k8s-charts https://kriegalex.github.io/k8s-charts/
  1. Inspect & modify the default values (optional)
helm show values k8s-charts/bentopdf > custom-values.yaml
  1. 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 nginx user of the nginx-unprivileged base image)
  • Port 8080: Uses a high port number to avoid requiring root privileges
  • nginx-unprivileged: Based on the nginx-unprivileged image for enhanced security
  • Principle of Least Privilege: Minimal container privileges with all capabilities dropped
  • No Privilege Escalation: allowPrivilegeEscalation is 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.

KeyTypeDefaultDescription
fullnameOverridestring""String to fully override bentopdf.fullname template
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"ghcr.io/alam00000/bentopdf-simple"Docker image repository for BentoPDF (uses nginx-unprivileged for enhanced security)
image.tagstring""Overrides the image tag whose default is the chart appVersion
imagePullSecretslist[]Image pull secrets for private Docker registry
ingress.annotationsobject{}Additional ingress annotations @example annotations: cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.classNamestring""Ingress class name
ingress.enabledboolfalseEnable ingress resource
ingress.tls.enabledboolfalseEnable TLS for ingress
ingress.tls.secretNamestring"-bentopdf-ingress-lets-encrypt"Secret name for TLS certificate
ingress.urlstring""The URL for the ingress endpoint to point to the BentoPDF instance
livenessProbe.enabledbooltrueEnable liveness probe
livenessProbe.failureThresholdint3
livenessProbe.httpGet.pathstring"/"
livenessProbe.httpGet.portstring"http"
livenessProbe.initialDelaySecondsint30
livenessProbe.periodSecondsint10
livenessProbe.timeoutSecondsint5
nameOverridestring""String to partially override bentopdf.fullname template
podAnnotationsobject{}Annotations to add to pods
podSecurityContext.fsGroupint101Group ID for filesystem access
podSecurityContext.runAsGroupint101Group ID to run the pod
podSecurityContext.runAsNonRootbooltrueRun container as non-root user
podSecurityContext.runAsUserint101User ID to run the pod
readinessProbe.enabledbooltrueEnable readiness probe
readinessProbe.failureThresholdint3
readinessProbe.httpGet.pathstring"/"
readinessProbe.httpGet.portstring"http"
readinessProbe.initialDelaySecondsint10
readinessProbe.periodSecondsint5
readinessProbe.timeoutSecondsint3
replicaCountint1Number of pod replicas
resourcesobject{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}Resource limits and requests for BentoPDF
securityContext.allowPrivilegeEscalationboolfalsePrevent privilege escalation
securityContext.capabilities.drop[0]string"ALL"
securityContext.readOnlyRootFilesystemboolfalseAllow write access to root filesystem
service.annotationsobject{}Additional annotations for the service
service.portint8080Kubernetes Service port
service.targetPortint8080Container target port
service.typestring"ClusterIP"Kubernetes Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountServiceAccountTokenboolfalseIf the service account token should be auto mounted
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""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.

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