bindery

by bdclark

Helm chartv0.2.3App v1.53.2MITVerified publisher

Automated ebook and audiobook download manager for Usenet and torrents

About this chart

Bindery Helm Chart

Automated ebook and audiobook download manager for Usenet and torrents

Installing

helm repo add bdclark https://bdclark.github.io/helm-charts
helm repo update
helm install bindery bdclark/bindery -f values.yaml

Persistence

Bindery stores its SQLite database, backups, and image cache in persistence.config, which is enabled by default and mounted at /config.

persistence.data is disabled by default. Bindery and its download client must mount the same filesystem at the same path to use hardlinks rather than copying completed downloads. Enable it with an existing shared claim for the normal media-stack layout:

persistence:
  data:
    enabled: true
    existingClaim: shared-media
    mountPath: /data

Configure Bindery to use directories beneath that shared mount:

env:
  BINDERY_DOWNLOAD_DIR: /data/downloads/complete
  BINDERY_LIBRARY_DIR: /data/books
  # Optional: leave unset to keep audiobooks with the ebook library.
  # BINDERY_AUDIOBOOK_DIR: /data/audiobooks

To provision a standalone data claim, enable persistence.data without existingClaim. It only supports hardlinks when the download client also mounts that same claim at the same path.

Additional Volumes

Use extraVolumes and extraVolumeMounts for additional media roots, Calibre integration, or a nonstandard storage topology:

extraVolumes:
  - name: calibre
    persistentVolumeClaim:
      claimName: calibre-library

extraVolumeMounts:
  - name: calibre
    mountPath: /calibre
    readOnly: true

Environment Variables

Configure Bindery through the web UI. Use env for environment-level settings such as paths, URL base, logging, or API-key seeding, and envFrom for bulk ConfigMap or Secret references.

env:
  BINDERY_LOG_LEVEL: info
  BINDERY_URL_BASE: /bindery
  BINDERY_API_KEY:
    valueFrom:
      secretKeyRef:
        name: bindery-secrets
        key: api-key

envFrom:
  - secretRef:
      name: bindery-env

Security and Probes

The upstream distroless image runs as UID/GID 65532. This chart uses the upstream non-root, read-only-root-filesystem security profile and mounts an internal writable /tmp. Startup uses a TCP probe; readiness and liveness use /api/v1/health.

Ingress

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: bindery.example.com
      paths:
        - path: /
          pathType: Prefix

Configuration

KeyTypeDefaultDescription
nameOverridestring""Override the release name.
fullnameOverridestring""Override the full release name.
replicaCountint1Number of replicas. Bindery uses SQLite and supports one active replica.
strategyobject{"type":"Recreate"}Deployment update strategy. Bindery uses SQLite and requires Recreate.
deploymentAnnotationsobject{}Annotations for the Deployment.
extraDeploymentLabelsobject{}Additional labels for the Deployment.
podAnnotationsobject{}Annotations for pods.
podLabelsobject{}Additional labels for pods.
commonLabelsobject{}Labels to add to all resources.
image.repositorystring"ghcr.io/vavallee/bindery"Image repository.
image.tagstring""Image tag (defaults to chart appVersion).
image.pullPolicystring"IfNotPresent"Image pull policy.
imagePullSecretslist[]Image pull secrets.
podSecurityContextobject{"fsGroup":65532,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context.
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Container security context.
resourcesobject{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"50m","memory":"128Mi"}}Resource requests and limits.
portslist[{"containerPort":8787,"name":"http","protocol":"TCP"}]Container ports.
startupProbeobject{"failureThreshold":30,"periodSeconds":5,"tcpSocket":{"port":"http"}}Startup probe configuration.
livenessProbeobject{"failureThreshold":5,"httpGet":{"path":"/api/v1/health","port":"http"},"initialDelaySeconds":30,"periodSeconds":10}Liveness probe configuration.
readinessProbeobject{"failureThreshold":3,"httpGet":{"path":"/api/v1/health","port":"http"},"periodSeconds":10}Readiness probe configuration.
envobject{} (see values.yaml comments for examples)Environment variables. Configure media paths below the mounted data volume.
envFromlist[]Environment variables from ConfigMaps or Secrets.
persistence.config.enabledbooltrueEnable persistence for Bindery's database, backups, and image cache.
persistence.config.mountPathstring"/config"Mount path.
persistence.config.subPathstring""Subdirectory of the volume to mount (optional).
persistence.config.storageClassstring""Storage class ("-" for default, "" for cluster default).
persistence.config.accessModeslist["ReadWriteOnce"]Access modes.
persistence.config.sizestring"4Gi"Volume size.
persistence.config.existingClaimstring""Use existing PVC (disables provisioning).
persistence.config.extraLabelsobject{}Additional labels for PVCs created by this chart.
persistence.config.annotationsobject{}PVC annotations.
persistence.data.enabledboolfalseEnable a shared media volume for downloads and libraries.
persistence.data.mountPathstring"/data"Mount path.
persistence.data.subPathstring""Subdirectory of the volume to mount (optional).
persistence.data.storageClassstring""Storage class ("-" for default, "" for cluster default).
persistence.data.accessModeslist["ReadWriteOnce"]Access modes.
persistence.data.sizestring"100Gi"Volume size when provisioning a PVC.
persistence.data.existingClaimstring""Existing shared media PVC. Recommended when the download client uses the same filesystem.
persistence.data.extraLabelsobject{}Additional labels for PVCs created by this chart.
persistence.data.annotationsobject{}PVC annotations.
extraVolumeMountslist[]Additional volume mounts.
initContainerslist[]Additional init containers.
sidecarslist[]Additional sidecar containers.
extraVolumeslist[]Additional volumes.
service.typestring"ClusterIP"Service type.
service.portint8787Service port.
ingress.enabledboolfalseEnable Ingress.
ingress.classNamestring""Ingress class name.
ingress.annotationsobject{}Ingress annotations.
ingress.hostslist[{"host":"bindery.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Ingress hosts.
ingress.tlslist[]Ingress TLS configuration.
nodeSelectorobject{}Node selector.
tolerationslist[]Tolerations.
affinityobject{}Affinity rules.

License

MIT - see LICENSE.

Deploy bindery with OpenTenant

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