music-assistant

by bdclark

Helm chartv0.5.2App 2.10.14MITVerified publisher

Music Assistant - Universal media library manager for streaming services and connected audio devices

About this chart

Music-Assistant Helm Chart

Music Assistant - Universal media library manager for streaming services and connected audio devices

[!NOTE] This chart is under active development. Breaking changes may occur between minor versions.

Installing

From repo

helm repo add bdclark https://bdclark.github.io/helm-charts
helm repo update
helm install music-assistant bdclark/music-assistant

From source

helm install music-assistant ./charts/music-assistant

Uninstall

helm uninstall music-assistant

Networking Modes

ModeUse caseNotes
hostNetwork=true (default)Direct VLAN / UPnP / Chromecast discoveryPod shares node network namespace. Disable service.* unless you still need a ClusterIP for probes.
hostNetwork=falseStandard Kubernetes networking (ingress, services)Enables service.* ports; device discovery depends on CNI support.

Persistence and update strategy

Music Assistant runs as a single replica, with a single PVC when persistence is enabled. Persistence is recommended for production use to retain configuration, metadata, and cache data across pod restarts and upgrades.

persistence:
  enabled: true
  size: 5Gi
  storageClass: fast-ssd

The deployment update strategy defaults depend on persistence settings:

  • Persistence disabled: uses Kubernetes default update behavior (RollingUpdate unless otherwise set).
  • Persistence enabled: defaults to Recreate to avoid ReadWriteOnce attach/mount conflicts.

The deployment strategy may be overridden explicitly, for example:

strategy:
  type: RollingUpdate
  rollingUpdate:
    maxSurge: 0
    maxUnavailable: 1

Common overrides

Cluster networking + ingress

hostNetwork: false
service:
  enabled: true
  type: ClusterIP
ingress:
  enabled: true
  className: nginx
  hosts:
    - host: music-assistant.local
      paths:
        - path: /
          pathType: Prefix

Host networking with media mounts

hostNetwork: true
additionalVolumes:
  - name: media-nfs
    nfs:
      server: nas.example.com
      path: /volume1/media
additionalMounts:
  - name: media-nfs
    mountPath: /media
    readOnly: true

Security context overrides

The chart leaves pod and container security settings unset by default. This lets the image runtime defaults apply unless you explicitly opt into Kubernetes security context fields.

podSecurityContext:
  fsGroup: 1000

securityContext:
  runAsUser: 1000
  runAsGroup: 1000
  runAsNonRoot: true
  allowPrivilegeEscalation: false
  capabilities:
    drop:
      - ALL

For cases that need additional access, use the native Kubernetes securityContext.capabilities shape directly:

securityContext:
  capabilities:
    drop:
      - ALL
    add:
      - DAC_READ_SEARCH

Configuration

KeyTypeDefaultDescription
image.repositorystring"ghcr.io/music-assistant/server"Image repository
image.tagstring""Image tag (defaults to appVersion)
image.pullPolicystring"IfNotPresent"Image pull policy
imagePullSecretslist[]Secrets for pulling images from private repositories
nameOverridestring""Override the chart name
fullnameOverridestring""Override the full release name
deploymentAnnotationsobject{}Annotations for the Deployment.
extraDeploymentLabelsobject{}Additional labels for the Deployment.
podLabelsobject{}Extra labels applied to the pod
podAnnotationsobject{}Pod annotations applied to the Music Assistant pod
commonLabelsobject{}Labels to add to all resources.
podSecurityContextobject{}Pod security context
resourcesobject{}Resource requests/limits for the pod
securityContextobject{}Container security context
hostNetworkbooltrueRun the pod in the node network namespace
dnsPolicystring"ClusterFirst"DNS policy when using host networking
hostPort.enabledboolfalseEnable hostPort configuration
hostPort.webPortint8095Host port for the web interface
hostPort.streamPortint8097Host port for audio streaming
service.enabledboolfalseCreate Service resources
service.typestring"ClusterIP"Service type (ClusterIP/LoadBalancer/NodePort)
service.annotationsobject{}Additional service annotations
service.webPortint8095Port for the web interface
service.streamPortint8097Port for audio streaming
service.loadBalancerIPstring""Static IP for LoadBalancer services
service.loadBalancerSourceRangeslist[]Allowed source ranges for LoadBalancer
service.externalTrafficPolicystring"Cluster"Preserve client IP (Local) or use Cluster routing
service.sessionAffinitystring"None"Service session affinity mode
ingress.enabledboolfalseEnable ingress
ingress.classNamestring""Ingress class name
ingress.annotationsobject{}Additional ingress annotations
ingress.hostslist[{"host":"music-assistant.local","paths":[{"path":"/","pathType":"Prefix"}]}]Ingress rules configuration
ingress.tlslist[]TLS configuration for ingress
persistence.enabledbooltrueEnable persistent volume for Music Assistant data
persistence.storageClassstring""Storage class for PVC Set to "-" to disable dynamic provisioning and use default storage class Set to "" to use cluster default storage class
persistence.accessModeslist["ReadWriteOnce"]Access modes for the PVC
persistence.sizestring"2Gi"Requested PVC size
persistence.existingClaimstring""Use an existing PVC instead of creating a new one If defined, PVC must be created manually before volume will be bound
persistence.extraLabelsobject{}Additional labels for PVCs created by this chart.
persistence.annotationsobject{}Annotations for PVC
strategyobject{}Deployment update strategy (default: Recreate when persistence.enabled)
additionalVolumeslist[]Extra volumes to mount (e.g., media libraries)
additionalMountslist[]Additional volume mounts matching additionalVolumes
envlist[]Extra environment variables for the container
envFromlist[]Environment sources (ConfigMap/Secret refs)
livenessProbeobject{"failureThreshold":3,"httpGet":{"path":"/","port":"web"},"initialDelaySeconds":60,"periodSeconds":30,"timeoutSeconds":10}Liveness probe configuration
readinessProbeobject{"failureThreshold":3,"httpGet":{"path":"/","port":"web"},"initialDelaySeconds":30,"periodSeconds":10,"timeoutSeconds":5}Readiness probe configuration
startupProbeobject{"failureThreshold":30,"httpGet":{"path":"/","port":"web"},"initialDelaySeconds":10,"periodSeconds":10,"timeoutSeconds":5}Startup probe configuration
nodeSelectorobject{}Node selector for scheduling
tolerationslist[]Pod tolerations
affinityobject{}Pod affinity/anti-affinity rules

Contributing

  • Bump version/appVersion in Chart.yaml for any change.
  • Keep unit tests (charts/music-assistant/tests/) and integration tests (tests/integration/pytest_suite/charts/test_music_assistant.py) up to date.
  • Run task verify-chart CHART=music-assistant + targeted task pytest before opening a PR.

License

MIT — see LICENSE.

Deploy music-assistant with OpenTenant

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