paperless-ngx

by CrystalNET

Helm chartv0.2.22App 2.13.1Verified publisher

A community-supported supercharged version of paperless with an included ftp server: scan, index and archive all your physical documents.

About this chart


Paperless Ngx

Disclaimer: This application has been developed by the Paperless Ngx community.

Paperless-ngx A community-supported supercharged version of paperless: scan, index and archive all your physical documents.

> More about Paperless Ngx


TL;DR

Direct install via oci://:

helm install my-release oci://harbor.crystalnet.org/charts/paperless-ngx

install using chartMuseum:

helm repo add crystalnet https://charts.crystalnet.org
helm install my-release crystalnet/paperless-ngx

Introduction

This chart bootstraps a Paperless Ngx deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Helm 3+
  • PV provisioner support in the underlying infrastructure
  • loadbalancer support for the ftp ingestion to work

Requirements

Kubernetes: >=1.22.0-0

RepositoryNameVersion
https://charts.bitnami.com/bitnamimariadb(mariadb)~15.2.0
https://charts.bitnami.com/bitnamipostgresql(postgresql)~14.0.0
https://charts.bitnami.com/bitnamiredis(redis)~18.12.0

Installing the Chart

To install the chart with the release name my-release:

Direct install via oci://:

helm install my-release oci://harbor.crystalnet.org/charts/paperless-ngx

install using chartMuseum:

helm repo add crystalnet https://charts.crystalnet.org
helm install my-release crystalnet/paperless-ngx

These commands deploy paperless-ngx on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

KeyDescriptionDefault
global.commonLabelsLabels to apply to all resources.{}
global.imagePullSecretsReference to one or more secrets to be used when pulling images (kubernetes.io/docs)[]

Common parameters

KeyDescriptionDefault
fullnameOverrideString to fully override common.names.fullname template""
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""

Paperless Ngx parameters

KeyDescriptionDefault
config.auth.emaildefault email for the admin user"[email protected]"
config.auth.existing_secretuse an pre-existing secret to provide credentials it should contain the keys paperless-user, paperless-mail and paperless-passnil
config.auth.passworddefault password for the admin user"admin"
config.auth.usernamedefault username for the admin user"admin"
config.consumer.recursivelet the consumer recurse into subdirectories for new documentstrue
config.ftpd.enabledset to true to enable builtin ftpd that uses the paperless database for authenticationfalse
config.ftpd.public_ipPublic IP used for the embedded FTPD for passive mode (usually your loadbalancer IP)"127.0.0.1"
config.ftpd.service_typeloadbalancer for ease of use, you could potentially also use clusterip with an nginx tcp-services configmap"LoadBalancer"
config.ocr_languagesLanguages to be used for ocr (only pre-installed languages are supported)["deu","eng"]
config.paperless_urlUrl where paperless is reachable via browser (including http(s)://)"https://paperless.domain"
image.pullPolicypull policy, if you set tag to latest, this should be set to Always to not end up with stale builds"IfNotPresent"
image.repositoryreferencing the docker image to use for the deployment"ghcr.io/paperless-ngx/paperless-ngx"
image.tagOverrides the image tag whose default is the chart appVersion.""

Security parameters

KeyDescriptionDefault
podSecurityContext.fsGroupset filesystem group access to the same as runAsGroup1000
podSecurityContext.fsGroupChangePolicychange fs mount permissions if they are not matching desired fsGroup"OnRootMismatch"
podSecurityContext.runAsGrouprun the deployment as a group with this GID, should match fsGroup above1000
podSecurityContext.runAsNonRootensure the container dosnt run with not-needed root permissionstrue
podSecurityContext.runAsUserrun the deployment as a user with this UID1000
podSecurityContext.seccompProfile.typesecure computing mode - see: kubernetes.io/docs"RuntimeDefault"
securityContext.allowPrivilegeEscalationControls whether a process can gain more privileges than its parent processfalse
securityContext.capabilities.dropdrop unneccessary permissions["ALL"]
securityContext.readOnlyRootFilesystemmount / as readonly, writeable directorys are explicitely mountedtrue

Deployment/Statefulset parameters

KeyDescriptionDefault
affinitydefine affinity, to have the pod run on the same node as other specific things{}
nodeSelectorDefine a subset of worker nodes where the deployment can be scheduled on{}
podAnnotationsIf needed, set some annotations to the deployed pods{}
resourcesLimit the pods ressources if needed{}
tolerationssetup tolerations if you for example want to have a dedicated worker node that only runs paperless[]

Network parameters

KeyDescriptionDefault
ingress.annotationsadd annotations to the ingress object (for example to have certificates managed by cert-manager){"nginx.ingress.kubernetes.io/proxy-body-size":"256m"}
ingress.classNameuses the default ingress class if not set""
ingress.enabledEnable creation of an ingress object for the deploymentfalse
ingress.hosts[0]Hostname the ingress should react for{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}
ingress.tls[]
service.typeusually ClusterIP if you have an ingress in place, could also be set to LoadBalancer if for example metallb is in place"ClusterIP"
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.nameThe name of the service account to use. If not set and create is true, a name is generated using the fullname template""

Persistence parameters

KeyDescriptionDefault
persistence.consume.enabledEnable paperless consume dir persistence using PVC. If false, use emptyDir (usually not needed)false
persistence.consume.volumeClaimSpec.accessModes[0]"ReadWriteOnce"
persistence.consume.volumeClaimSpec.resources.requests.storage"2Gi"
persistence.data.enabledEnable paperless data persistence using PVC. (search index, SQLite database, classification model, etc)true
persistence.data.volumeClaimSpec.accessModes[0]"ReadWriteOnce"
persistence.data.volumeClaimSpec.resources.requests.storage"10Gi"
persistence.log.enabledEnable paperless data persistence using PVC. (search index, SQLite database, classification model, etc)true
persistence.log.volumeClaimSpec.accessModes[0]"ReadWriteOnce"
persistence.log.volumeClaimSpec.resources.requests.storage"1Gi"

Database parameters

KeyDescriptionDefault
config.database.mariadbonly needed when type is mariadb and mariadb.enabled is set to false meaning you would use an external already existing mariadb instanceSee values.yaml
config.database.mariadb.existing_secretuse an pre-existing secret to provide credentials it should contain the keys mysql-user and mysql-passnil
config.database.mariadb.hosthostname where your external mariadb is reachable"localhost"
config.database.mariadb.passmariadb password to use for our connection"password"
config.database.mariadb.portport to connect to3306
config.database.mariadb.schemadatabase schema that holds the paperless tables"paperless"
config.database.mariadb.usermariadb user to use for our connection"paperless-user"
config.database.typetype can either be mariadb, postgresql or sqlite"postgresql"
mariadb.auth.databasedefine database schema name that should be available"paperless"
mariadb.auth.passwordpassword to connect to the database"changeme"
mariadb.auth.rootPassworddedicated root password for the database (normally not used but needed for creation of schemas etc.)"changeme"
mariadb.auth.usernameusername to connect to the database"paperless"
mariadb.enabledprovision an instance of the mariadb sub-chartfalse
mariadb.primary.persistence.enabledenable to not loose your database contents on updatesfalse

redis parameters

KeyDescriptionDefault
redis.architecturecan be set to replication to spawn a full redis cluster with 3 nodes instead"standalone"
redis.auth.enabledenable redis authentication modetrue
redis.auth.passwordpassword that gets used for the connection between paperless and redis"changeme"
redis.enabledprovision an instance of the redis sub-charttrue
redis.redisPortdefault port for redis to listen on6379

Other parameters

KeyDescriptionDefault
ftpd_image.pullPolicypull policy, if you set tag to latest, this should be set to Always to not end up with stale builds"IfNotPresent"
ftpd_image.repositoryreferencing the docker image to use for the ftpd component"harbor.crystalnet.org/library/paperless-ftpd"
ftpd_image.tagOverrides the image tag whose default is the chart appVersion."0.2.3"
mediaVolumeThe list of additional volumes that will be mounted inside paperless pod, this one to /paperless/library.See values.yaml
postgresql.auth.databasedefine database schema name that should be available"paperless"
postgresql.auth.passwordpassword to connect to the database"changeme"
postgresql.auth.usernameusername to connect to the database"paperless"
postgresql.enabledprovision an instance of the postgresql sub-charttrue

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install my-release --set fullnameOverride=my-paperless-ngx oci://harbor.crystalnet.org/charts/paperless-ngx

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml oci://harbor.crystalnet.org/charts/paperless-ngx

Tip: You can use the default values.yaml

License

Licensed under the GNU General Public License v3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

TBD

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Deploy paperless-ngx with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has paperless-ngx 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 chartpaperless-ngx is pinned at v0.2.22 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