audiobookshelf

by bdclark

Helm chartv0.2.0App 2.38.0MITVerified publisher

Self-hosted audiobooks and podcast server

About this chart

Audiobookshelf Helm Chart

Self-hosted audiobooks and podcast server

Installing

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

Runtime Defaults

By default, this chart follows upstream container behavior (root-compatible). Use the non-root profile below when your cluster policy requires non-root workloads.

Environment Variables

Environment variables can be set via env (inline values or refs) and envFrom (bulk refs).

env:
  TZ: America/New_York
  HOST: 0.0.0.0
  PORT: "80"
  CONFIG_PATH: /config
  METADATA_PATH: /metadata
  BACKUP_PATH: /metadata/backups

Persistence

This chart manages two PVCs by default:

  • persistence.config mounted at /config
  • persistence.metadata mounted at /metadata
persistence:
  config:
    enabled: true
    size: 5Gi
  metadata:
    enabled: true
    size: 5Gi

Media Volumes (Existing PVCs)

Use mediaMounts to mount user-provided media claims:

mediaMounts:
  - name: audiobooks
    existingClaim: media-audiobooks
    mountPath: /audiobooks
    readOnly: true
  - name: podcasts
    existingClaim: media-podcasts
    mountPath: /podcasts
    readOnly: true

Non-Root Profile Example

For non-root execution, switch to a non-privileged port and align service/container settings:

podSecurityContext:
  fsGroup: 1000

securityContext:
  runAsUser: 1000
  runAsGroup: 1000
  runAsNonRoot: true

env:
  PORT: "13378"

ports:
  - name: http
    containerPort: 13378
    protocol: TCP

service:
  port: 13378
  targetPort: http

permissionsInitContainer:
  enabled: true
  chownUser: 1000
  chownGroup: 1000
  chownPaths:
    - /config
    - /metadata

Permissions Init Container

The optional built-in permissions init container is intentionally scoped to chart-owned writable paths (/config, /metadata) and does not touch media mounts.

Ingress

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

Configuration

KeyTypeDefaultDescription
nameOverridestring""Override the release name.
fullnameOverridestring""Override the full release name.
replicaCountint1Number of replicas.
strategyobject{"type":"Recreate"}Deployment update strategy.
commonLabelsobject{}Labels to add to all resources.
deploymentAnnotationsobject{}Annotations for the Deployment.
extraDeploymentLabelsobject{}Additional labels for the Deployment.
podAnnotationsobject{}Annotations for pods.
podLabelsobject{}Additional labels for pods.
image.repositorystring"ghcr.io/advplyr/audiobookshelf"Image repository.
image.tagstring""Image tag (defaults to chart appVersion).
image.pullPolicystring"IfNotPresent"Image pull policy.
imagePullSecretslist[]Image pull secrets.
podSecurityContextobject{}Pod security context.
securityContextobject{}Container security context.
portslist[{"containerPort":80,"name":"http","protocol":"TCP"}]Container ports.
envobject{} (see values.yaml comments for examples)Environment variables.
envFromlist[]Environment variables from ConfigMaps or Secrets.
resourcesobject{}Resource requests and limits.
startupProbeobject{}Startup probe configuration.
livenessProbeobject{}Liveness probe configuration.
readinessProbeobject{}Readiness probe configuration.
persistence.config.enabledbooltrueEnable persistence for config data.
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"5Gi"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.metadata.enabledbooltrueEnable persistence for metadata.
persistence.metadata.mountPathstring"/metadata"Mount path.
persistence.metadata.subPathstring""Subdirectory of the volume to mount (optional).
persistence.metadata.storageClassstring""Storage class ("-" for default, "" for cluster default).
persistence.metadata.accessModeslist["ReadWriteOnce"]Access modes.
persistence.metadata.sizestring"5Gi"Volume size.
persistence.metadata.existingClaimstring""Use existing PVC (disables provisioning).
persistence.metadata.extraLabelsobject{}Additional labels for PVCs created by this chart.
persistence.metadata.annotationsobject{}PVC annotations.
mediaMountslist[]Structured media mounts for user-provided existing PVCs.
permissionsInitContainer.enabledboolfalseEnable built-in permissions init container.
permissionsInitContainer.imagestring"busybox:1.38"Image for the permissions init container.
permissionsInitContainer.runAsUserint0UID used to run the init container.
permissionsInitContainer.runAsGroupint0GID used to run the init container.
permissionsInitContainer.chownUserint1000UID to chown target paths to.
permissionsInitContainer.chownGroupint1000GID to chown target paths to.
permissionsInitContainer.chownPathslist["/config","/metadata"]Paths to chown. Keep this limited to app-owned writable paths.
initContainerslist[]Additional init containers.
sidecarslist[]Additional sidecar containers.
extraVolumeslist[]Additional volumes.
extraVolumeMountslist[]Additional volume mounts.
service.typestring"ClusterIP"Service type.
service.portint80Service port.
service.targetPortstring"http"Target port name or number.
ingress.enabledboolfalseEnable Ingress.
ingress.classNamestring""Ingress class name.
ingress.annotationsobject{}Ingress annotations.
ingress.hostslist[{"host":"audiobookshelf.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 audiobookshelf with OpenTenant

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