Skip to content

Castopod

Open-source podcast hosting platform. Castopod manages your episodes, generates RSS feeds for distribution to Apple Podcasts, Spotify, and other directories, tracks anonymous listener analytics, and federates with the Fediverse via ActivityPub. All media and metadata are stored on a MariaDB database backed by a persistent volume for uploads.

Key Features

  • RSS feed generation — automatic, standards-compliant podcast feeds for all directories
  • Built-in analytics — privacy-respecting listener tracking with hashed IDs
  • Fediverse integration — ActivityPub support for social interactions and episode sharing
  • MariaDB backend — bundled subchart or external database
  • Optional Redis cache — subchart for improved query and session caching
  • Persistent storage — PVC for uploaded audio files, images, and writable data
  • S3 backup — scheduled archive of the writable directory to S3-compatible storage
  • FrankenPHP runtime — high-performance PHP server built into the official image
  • CDN support — configurable separate media base URL for audio file delivery

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install castopod helmforge/castopod

OCI registry:

helm install castopod oci://ghcr.io/helmforgedev/helm/castopod

Deployment Examples

# values.yaml — Castopod with bundled MariaDB (default)
castopod:
  baseURL: 'https://podcast.example.com'

mariadb:
  enabled: true
  auth:
    password: 'mariadb-password'

persistence:
  enabled: true
  size: 20Gi

ingress:
  enabled: true
  ingressClassName: traefik
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
  hosts:
    - host: podcast.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: castopod-tls
      hosts:
        - podcast.example.com
# values.yaml — Castopod with MariaDB and Redis for caching
castopod:
  baseURL: 'https://podcast.example.com'

mariadb:
  enabled: true
  auth:
    password: 'mariadb-password'

redis:
  enabled: true
  architecture: standalone
  auth:
    enabled: false

persistence:
  enabled: true
  size: 20Gi

ingress:
  enabled: true
  ingressClassName: traefik
  hosts:
    - host: podcast.example.com
      paths:
        - path: /
          pathType: Prefix
# values.yaml — Castopod with media served from a CDN
# Audio files are stored in the PVC but served via CDN URL
castopod:
  baseURL: 'https://podcast.example.com'
  extraEnv:
    - name: CP_MEDIA_BASE_URL
      value: 'https://cdn.example.com/castopod'

mariadb:
  enabled: true
  auth:
    password: 'mariadb-password'

persistence:
  enabled: true
  size: 20Gi

ingress:
  enabled: true
  ingressClassName: traefik
  hosts:
    - host: podcast.example.com
      paths:
        - path: /
          pathType: Prefix
# values.yaml — Daily backup of Castopod writable directory to S3
# NOTE: Backup covers uploaded media and files only.
#       Back up the MariaDB database separately.
castopod:
  baseURL: 'https://podcast.example.com'

mariadb:
  enabled: true
  auth:
    password: 'mariadb-password'

persistence:
  enabled: true
  size: 20Gi

backup:
  enabled: true
  schedule: '0 3 * * *'
  s3:
    endpoint: https://s3.amazonaws.com
    bucket: my-castopod-backups
    accessKey: '<set-me>'
    secretKey: '<set-me>'

Configuration Reference

Core

ParameterTypeDefaultDescription
nameOverridestring""Override the chart name.
fullnameOverridestring""Override the full release name.
commonLabelsobject{}Extra labels added to all resources.

Image

ParameterTypeDefaultDescription
image.repositorystringdocker.io/castopod/castopodCastopod container image.
image.tagstring"1.15.5"Image tag.
image.pullPolicystringIfNotPresentImage pull policy.
imagePullSecretsarray[]Pull secrets for private registries.

Castopod Configuration

ParameterTypeDefaultDescription
castopod.baseURLstring""Public base URL of the Castopod instance (e.g. https://podcast.example.com).
castopod.portinteger8080Internal HTTP port (FrankenPHP).
castopod.extraEnvarray[]Extra environment variables for CDN configuration and advanced settings.
baseURL is required and affects all RSS feeds

All episode audio URLs, podcast RSS feed links, and API responses are built using castopod.baseURL. If this value is incorrect, podcast directories (Apple Podcasts, Spotify, etc.) will be unable to download episodes from your instance. Always set the exact public URL including https:// and without a trailing slash.

Analytics

ParameterTypeDefaultDescription
analytics.saltstring""Salt for hashing listener IDs. Auto-generated (64 chars) if empty.
analytics.existingSecretstring""Existing Kubernetes Secret containing the analytics salt.
analytics.existingSecretKeystringanalytics-saltKey inside the existing secret holding the salt value.
Persist the analytics salt for consistent reporting

The analytics salt is used to hash listener IP addresses into anonymous IDs. If the salt changes (e.g. pod restart without a persistent value), historical listener data becomes inconsistent — the same listener appears as multiple distinct users across time periods. Set analytics.salt explicitly or use analytics.existingSecret.

Database — Embedded Subchart

ParameterTypeDefaultDescription
mariadb.enabledbooleantrueDeploy a bundled MariaDB subchart for Castopod.
mariadb.architecturestringstandaloneMariaDB deployment architecture.
mariadb.auth.databasestringcastopodDatabase name created by the subchart.
mariadb.auth.usernamestringcastopodDatabase username created by the subchart.
mariadb.auth.passwordstring""Database password (auto-generated if empty).

Database — External

ParameterTypeDefaultDescription
database.external.hoststring""External MariaDB hostname or IP.
database.external.portstring"3306"External MariaDB port.
database.external.namestringcastopodDatabase name on the external server.
database.external.usernamestringcastopodUsername for the external database.
database.external.passwordstring""Password for the external database (plain text — prefer secret).
database.external.existingSecretstring""Existing secret containing the database password.
database.external.existingSecretPasswordKeystringpasswordKey inside the existing secret for the password.

Cache — Redis Subchart

ParameterTypeDefaultDescription
redis.enabledbooleanfalseDeploy a bundled Redis subchart for caching.
redis.architecturestringstandaloneRedis deployment architecture.
redis.auth.enabledbooleanfalseEnable Redis authentication.

Persistence

The PVC stores the /var/www/html/writable directory, which contains uploaded audio files, episode images, generated thumbnails, cache, session data, and logs.

ParameterTypeDefaultDescription
persistence.enabledbooleantrueEnable a PVC for /var/www/html/writable.
persistence.sizestring10GiPVC size. Increase based on expected audio file volume.
persistence.storageClassstring""StorageClass for the PVC.
persistence.accessModestringReadWriteOncePVC access mode.
persistence.existingClaimstring""Use an existing PVC instead of creating one.
persistence.annotationsobject{}Annotations for the PVC.

Backup

S3 backup covers the writable directory only — not MariaDB

The S3 backup CronJob archives the Castopod writable directory (uploaded audio files, images, and cache). It does not back up the MariaDB database, which contains episode metadata, podcast definitions, user accounts, and analytics data. Configure a separate MariaDB backup strategy (e.g. the HelmForge MariaDB chart backup feature) to protect the full Castopod dataset.

ParameterTypeDefaultDescription
backup.enabledbooleanfalseEnable scheduled S3 backup CronJob.
backup.schedulestring"0 3 * * *"Cron schedule for backups.
backup.suspendbooleanfalseSuspend the CronJob without deleting it.
backup.concurrencyPolicystringForbidCronJob concurrency policy.
backup.successfulJobsHistoryLimitinteger3Number of successful Job records to keep.
backup.failedJobsHistoryLimitinteger3Number of failed Job records to keep.
backup.backoffLimitinteger1Job retry limit.
backup.archivePrefixstringcastopodPrefix for backup archive filenames.
backup.images.archiverstringdocker.io/library/busybox:1.37Image used for tar archive.
backup.images.uploaderstringdocker.io/helmforge/mc:1.0.0Image used for S3 upload.
backup.resourcesobject{}Resources for backup containers.
backup.s3.endpointstring""S3-compatible endpoint URL.
backup.s3.bucketstring""Target bucket name.
backup.s3.prefixstringcastopodKey prefix within the bucket.
backup.s3.createBucketIfNotExistsbooleantrueCreate the bucket automatically if it does not exist.
backup.s3.existingSecretstring""Existing secret containing S3 access and secret keys.
backup.s3.existingSecretAccessKeyKeystringaccess-keyKey in the existing secret for the S3 access key.
backup.s3.existingSecretSecretKeyKeystringsecret-keyKey in the existing secret for the S3 secret key.
backup.s3.accessKeystring""Inline S3 access key (ignored when existingSecret is set).
backup.s3.secretKeystring""Inline S3 secret key (ignored when existingSecret is set).

Service

ParameterTypeDefaultDescription
service.typestringClusterIPKubernetes service type.
service.portinteger80Service port exposed to the cluster.
service.annotationsobject{}Annotations for the Service.

Ingress

ParameterTypeDefaultDescription
ingress.enabledbooleanfalseEnable an Ingress resource.
ingress.ingressClassNamestringtraefikIngress class name.
ingress.annotationsobject{}Annotations for the Ingress (e.g. cert-manager).
ingress.hostsarray[]Ingress host and path rules.
ingress.tlsarray[]TLS configuration (secret name and hosts).

Probes

ParameterTypeDefaultDescription
probes.startup.enabledbooleantrueEnable startup probe.
probes.startup.initialDelaySecondsinteger10Startup probe initial delay.
probes.startup.periodSecondsinteger5Startup probe period.
probes.startup.timeoutSecondsinteger3Startup probe timeout.
probes.startup.failureThresholdinteger30Startup probe failure threshold.
probes.liveness.enabledbooleantrueEnable liveness probe.
probes.liveness.initialDelaySecondsinteger0Liveness probe initial delay.
probes.liveness.periodSecondsinteger15Liveness probe period.
probes.liveness.timeoutSecondsinteger5Liveness probe timeout.
probes.liveness.failureThresholdinteger3Liveness probe failure threshold.
probes.readiness.enabledbooleantrueEnable readiness probe.
probes.readiness.initialDelaySecondsinteger0Readiness probe initial delay.
probes.readiness.periodSecondsinteger10Readiness probe period.
probes.readiness.timeoutSecondsinteger5Readiness probe timeout.
probes.readiness.failureThresholdinteger3Readiness probe failure threshold.

Resources and Security

ParameterTypeDefaultDescription
resourcesobject{}CPU and memory requests and limits.
podSecurityContextobject{}Pod-level security context.
securityContextobject{}Container-level security context.

Service Account

ParameterTypeDefaultDescription
serviceAccount.createbooleanfalseCreate a dedicated ServiceAccount.
serviceAccount.namestring""Override the ServiceAccount name.
serviceAccount.annotationsobject{}Annotations for the ServiceAccount.

Scheduling

ParameterTypeDefaultDescription
nodeSelectorobject{}Node selector for scheduling.
tolerationsarray[]Tolerations for scheduling.
affinityobject{}Affinity rules.
topologySpreadConstraintsarray[]Topology spread constraints.
priorityClassNamestring""PriorityClass for the pod.
terminationGracePeriodSecondsinteger30Termination grace period.
podLabelsobject{}Extra labels for the pod.
podAnnotationsobject{}Extra annotations for the pod.

Extra

ParameterTypeDefaultDescription
extraVolumesarray[]Extra volumes to attach to the pod.
extraVolumeMountsarray[]Extra volume mounts for the container.
extraManifestsarray[]Extra Kubernetes manifests deployed alongside the chart.

Common Issues

Episodes not playing in podcast apps after URL change

If you change castopod.baseURL after publishing episodes, all RSS feed URLs will change and existing subscribers may lose access until their podcast app refreshes the feed. Plan your URL carefully before the first publish. If you must change it, use a 301 redirect from the old URL to the new one.

Complete the setup wizard before publishing

After the first deployment, open https://podcast.example.com/cp-install to complete the Castopod installation wizard. This creates the admin account and configures the initial podcast settings. The setup wizard is only available until the first admin is created.

More Information