bentopdf

by deimos_fr

Helm chartv1.0.21App 2.8.10

A Helm chart for BentoPDF - PDF manipulation service using BentoML

About this chart

bentopdf

A Helm chart for BentoPDF - PDF manipulation service using BentoML

Homepage: https://github.com/alam00000/bentopdf

Maintainers

NameEmailUrl
deimosfr[email protected]

Source Code

Requirements

Kubernetes: >=1.19.0-0

Configuration

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment
config.logLevelstring"INFO"Log level: DEBUG, INFO, WARNING, ERROR
config.workersint1Number of workers
fullnameOverridestring""String to fully override bentopdf.fullname template
httpRouteobject{"annotations":{},"enabled":false,"hostnames":["chart-example.local"],"parentRefs":[{"name":"gateway","sectionName":"http"}]}Expose the service via gateway-api HTTPRoute Requires Gateway API resources and suitable controller installed within the cluster (see: https://gateway-api.sigs.k8s.io/guides/)
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"ghcr.io/alam00000/bentopdf"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"/healthz"
livenessProbe.httpGet.portstring"http"
livenessProbe.initialDelaySecondsint30
livenessProbe.periodSecondsint10
livenessProbe.timeoutSecondsint5
nameOverridestring""String to partially override bentopdf.fullname template
nodeSelectorobject{}Node selector for pod assignment
persistence.accessModestring"ReadWriteOnce"Access mode for the persistent volume
persistence.enabledboolfalseEnable persistent storage
persistence.existingClaimstring""Use an existing PVC
persistence.mountPathstring"/tmp/bentopdf"Mount path for persistent storage
persistence.sizestring"10Gi"Size of the persistent volume
persistence.storageClassstring""Storage class for the PVC
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"/readyz"
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
strategyobject{"type":"RollingUpdate"}Deployment strategy
tolerationslist[]Tolerations for pod assignment
vpaobject{"enabled":false,"resourcePolicy":{},"updatePolicy":{"updateMode":"Auto"}}Vertical Pod Autoscaler configuration
vpa.enabledboolfalseEnable Vertical Pod Autoscaler
vpa.resourcePolicyobject{}Resource policy for VPA
vpa.updatePolicyobject{"updateMode":"Auto"}Update policy for VPA

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 v1.0.21 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