stirling-pdf-chart

by Frooodle

Helm chartv4.0.0App 3.2.0Verified publisher

locally hosted web application that allows you to perform various operations on PDF files

About this chart

stirling-pdf-chart

locally hosted web application that allows you to perform various operations on PDF files

Homepage: https://github.com/Stirling-Tools/Stirling-PDF

Maintainers

NameEmailUrl
Stirling-Toolshttps://github.com/Stirling-Tools/Stirling-PDF-chart

Source Code

Chart Repo

Helm repository

Add the following repo to use the chart:

helm repo add stirling-pdf https://docs.stirlingpdf.com/Stirling-PDF-chart

Values

KeyTypeDefaultDescription
affinityobject{}
autoscalingobject{"enabled":false,"maxReplicas":4,"minReplicas":2,"targetCPUUtilizationPercentage":80}HorizontalPodAutoscaler for the Stirling-PDF pods. Needs cluster.enabled: true and a metrics server.
clusterobject{"artifactKeyPrefix":"transient/","enabled":false,"stickySessions":true}Run Stirling-PDF as a multi-node cluster. Needs your own PostgreSQL, Valkey and S3 (external*) plus a licence (premium); the chart wires the app's cluster settings from them.
cluster.artifactKeyPrefixstring"transient/"Prefix for transient job files in the S3 bucket, so the bucket can also hold stored files
cluster.stickySessionsbooltrueAdd sticky-cookie annotations for Traefik (on the Service) and ingress-nginx (on the Ingress). Async job results are only served by the pod that ran the job; other pods answer 410.
commonLabelsobject{}Labels to apply to all resources
containerSecurityContextobject{}Container-level securityContext for the Stirling-PDF container
deployment.annotationsobject{}Stirling-pdf Deployment annotations
deployment.arbitraryUidboolfalseSet to true when the pod runs as a user id the image does not know, for example OpenShift's random UIDs. Adds a passwd entry for that id and writable copies of the image's data directories.
deployment.extraVolumeMountslist[]Additional volumes to mount
deployment.extraVolumeslist[]Additional volumes
deployment.initContainerslist[]Extra init containers, run after the chart's own init containers
deployment.labelsobject{}
deployment.preStopSleepSecondsint10Seconds a terminating pod keeps receiving no new traffic before the app is stopped. Gives Services and ingress controllers time to drop the pod, so rolling updates do not fail requests.
deployment.sidecarContainersobject{}of the chart's content, send notifications...
deployment.terminationGracePeriodSecondsint60Time allowed for a graceful shutdown (preStop sleep plus the app draining in-flight requests)
envslist[]Environment variables to add to the stirling-pdf pods. These are applied after the variables the chart generates, so an entry here overrides a chart-generated one of the same name.
envsFromlist[]Environment variables from secrets or configmaps to add to the stirling-pdf pods
externalDatabaseobject{"database":"stirling","existingSecret":"","existingSecretPasswordKey":"password","host":"","jdbcUrl":"","password":"","port":5432,"username":"stirling"}Your PostgreSQL server, used when host or jdbcUrl is set
externalDatabase.jdbcUrlstring""Full JDBC URL, overrides host/port/database (e.g. to add ?sslmode=require)
externalDatabase.passwordstring""Stored in a Secret created by the chart. Prefer existingSecret.
externalS3object{"accessKey":"","allowPrivateEndpoints":false,"bucket":"","endpoint":"","existingSecret":"","existingSecretAccessKeyKey":"access-key","existingSecretSecretKeyKey":"secret-key","pathStyleAccess":false,"region":"us-east-1","secretKey":""}Your S3-compatible bucket, used in cluster mode for job files (and for stored files with a licence)
externalS3.accessKeystring""Leave both keys and existingSecret empty to use the AWS default credential chain (e.g. IRSA)
externalS3.allowPrivateEndpointsboolfalseMust be true when the endpoint resolves to a private IP (e.g. an in-cluster server)
externalS3.endpointstring""Blank uses AWS's regional endpoint; otherwise the full URL, e.g. https://.r2.cloudflarestorage.com
externalS3.pathStyleAccessboolfalsetrue for MinIO/Ceph style servers, false for AWS
externalValkeyobject{"database":0,"existingSecret":"","existingSecretPasswordKey":"password","host":"","password":"","port":6379,"tls":false,"username":""}Your Valkey or Redis server (standalone), used in cluster mode. It must run with maxmemory-policy noeviction.
externalValkey.databaseint0Database index, so two installs can share one server
externalValkey.passwordstring""Stored in a Secret created by the chart. Prefer existingSecret.
externalValkey.tlsboolfalseUse TLS (rediss://)
extraArgslist[]
httpRouteobject{"annotations":{},"enabled":false,"hostnames":[],"labels":{},"parentRefs":[],"rules":[]}HTTPRoute (Gateway API) for load balancing. When enabled, an HTTPRoute resource is rendered alongside (or instead of) the Ingress.
httpRoute.annotationsobject{}Stirling-pdf HTTPRoute annotations
httpRoute.hostnameslist[]HTTPRoute hostnames. Must match the host the client requests.
httpRoute.labelsobject{}Stirling-pdf HTTPRoute labels
httpRoute.parentRefslist[]HTTPRoute parentRefs (the Gateway(s) this route attaches to). Must be provided if HTTPRoute is enabled. See https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways
httpRoute.ruleslist[]HTTPRoute rules. If empty, a default rule is rendered that routes all traffic to the chart's own Service on service.externalPort.
image.pullPolicystring"IfNotPresent"
image.registrystring"docker.stirlingpdf.com"
image.repositorystring"stirlingtools/stirling-pdf"
image.shastring""
image.tagstring""Overrides the image tag whose default is the chart appVersion.
ingressobject{"annotations":{},"enabled":false,"hosts":[],"ingressClassName":null,"labels":{},"pathType":"ImplementationSpecific"}Ingress for load balancer
ingress.annotationsobject{}Stirling-pdf Ingress annotations
ingress.hostslist[]Must be provided if Ingress is enabled
ingress.ingressClassNamestringnilSee https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
ingress.labelsobject{}Stirling-pdf Ingress labels
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"
persistence.enabledboolfalse
persistence.labelsobject{}
persistence.pathstring"/configs"Mount path of the storage volume. /configs holds settings.yml, the embedded database, keys and backups, so it is the directory worth persisting.
persistence.pvobject{"accessMode":"ReadWriteOnce","capacity":{"storage":"8Gi"},"enabled":false,"nfs":{"path":null,"server":null},"pvname":null}stirling-pdf data Persistent Volume Storage Class If defined, storageClassName: If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack) storageClass: "-" volumeName:
persistence.sizestring"8Gi"
podAnnotationsobject{}Read more about kube2iam to provide access to s3 https://github.com/jtblin/kube2iam
podDisruptionBudgetobject{"enabled":false,"minAvailable":1}PodDisruptionBudget for the Stirling-PDF pods. Only useful with 2 or more replicas.
podLabelsobject{}ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
premiumobject{"enabled":false,"existingSecret":"","existingSecretKey":"premium-key","key":""}Licence settings (Stirling-PDF premium.*). A Server or Enterprise licence is required for cluster mode, and for any processing when an external database (PostgreSQL) is used.
premium.enabledboolfalseTurn licence checks on (sets PREMIUM_ENABLED)
premium.existingSecretstring""Name of an existing Secret that holds the licence key
premium.existingSecretKeystring"premium-key"Key inside existingSecret that holds the licence key
premium.keystring""Licence key. Stored in a Secret created by the chart. Prefer existingSecret.
priorityClassNamestring""
probes.liveness.enabledbooltrue
probes.liveness.failureThresholdint3
probes.liveness.initialDelaySecondsint5
probes.liveness.periodSecondsint10
probes.liveness.successThresholdint1
probes.liveness.timeoutSecondsint5
probes.livenessHttpGetConfig.schemestring"HTTP"
probes.readiness.enabledbooltrue
probes.readiness.failureThresholdint3
probes.readiness.initialDelaySecondsint5
probes.readiness.periodSecondsint10
probes.readiness.successThresholdint1
probes.readiness.timeoutSecondsint5
probes.readinessHttpGetConfig.schemestring"HTTP"
probes.startup.enabledbooltrue
probes.startup.failureThresholdint60
probes.startup.initialDelaySecondsint10
probes.startup.periodSecondsint10
probes.startup.successThresholdint1
probes.startup.timeoutSecondsint5
probes.startupHttpGetConfigobject{}Left empty, the startup probe uses livenessHttpGetConfig
replicaCountint1Number of Stirling-PDF pods. More than 1 needs cluster.enabled: true.
resourcesobject{}CPU and memory for the Stirling-PDF container. The image sizes the Java heap from the memory limit (55-70% of it), so always set a memory limit.
rootPathstring"/"Rootpath for the application
secret.labelsobject{}
securityContextobject{"enabled":true,"fsGroup":1000}Pod-level securityContext. Every key except enabled is passed through as-is. UID/GID 1000 is the default user "stirling-pdf" used in the container image starting in v0.8.0 and above. This is required for local persistent storage. If your cluster does not allow this, try setting securityContext: {}
service.annotationsobject{}
service.externalPortint8080
service.externalTrafficPolicystring"Local"
service.ipFamilieslist[]Can be IPv4 and/or IPv6
service.ipFamilyPolicystring""set the ip family policy to configure dual-stack
service.labelsobject{}
service.loadBalancerIPstringnilOnly valid if service.type: LoadBalancer
service.loadBalancerSourceRangeslist[]Only valid if service.type: LoadBalancer
service.nodePortstringnil
service.servicenamestringnil
service.sessionAffinitystring""ClientIP pins each client to one pod, for clients that poll async jobs in cluster mode. Ingress controllers bypass this; use their sticky-cookie setting instead.
service.sessionAffinityConfigobject{}e.g. {clientIP: {timeoutSeconds: 10800}}
service.targetPortstringnilfrom deployment above. Leave empty to use stirling-pdf directly.
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.automountServiceAccountTokenboolfalse
serviceAccount.createbooltrue
serviceAccount.namestring""
serviceMonitor.enabledboolfalse
serviceMonitor.labelsobject{}
serviceMonitor.metricsPathstring"/metrics"
sharedKeysobject{"automaticallyGeneratedKey":"","automaticallyGeneratedUuid":"","credentialEncryptionKey":"","existingSecret":""}Keys every pod must share. Used when a database or cluster mode is on; otherwise the app keeps its own keys in /configs. Left empty, the chart generates them once and keeps them across upgrades.
sharedKeys.automaticallyGeneratedKeystring""AUTOMATICALLYGENERATED_KEY (any UUID)
sharedKeys.automaticallyGeneratedUuidstring""AUTOMATICALLYGENERATED_UUID (any UUID)
sharedKeys.credentialEncryptionKeystring""STIRLING_CREDENTIAL_ENCRYPTION_KEY: base64 of 32 random bytes (openssl rand -base64 32)
sharedKeys.existingSecretstring""Existing Secret with the keys credential-encryption-key (base64 of 32 random bytes), automatically-generated-key and automatically-generated-uuid. Required for helm template/GitOps.
strategyobject{}Deployment update strategy. Left empty, a single pod with a persistent volume gets RollingUpdate with maxSurge: 0, so the old pod stops before the new one opens the same embedded database.
tolerationslist[]
topologySpreadConstraintslist[]Spread pods across nodes or zones, for example [{maxSkew: 1, topologyKey: kubernetes.io/hostname, whenUnsatisfiable: ScheduleAnyway, labelSelector: {matchLabels: {app.kubernetes.io/instance: <release>}}}]
volumePermissionsobject`{"image":{"pullPolicy":"IfNotPresent","registry":"docker.io","repository":"library/busybox"

Deploy stirling-pdf-chart with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has stirling-pdf-chart 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 chartstirling-pdf-chart is pinned at v4.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