music-assistant
by bdclark
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
| Mode | Use case | Notes |
|---|---|---|
hostNetwork=true (default) | Direct VLAN / UPnP / Chromecast discovery | Pod shares node network namespace. Disable service.* unless you still need a ClusterIP for probes. |
hostNetwork=false | Standard 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
| Key | Type | Default | Description |
|---|---|---|---|
| image.repository | string | "ghcr.io/music-assistant/server" | Image repository |
| image.tag | string | "" | Image tag (defaults to appVersion) |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| imagePullSecrets | list | [] | Secrets for pulling images from private repositories |
| nameOverride | string | "" | Override the chart name |
| fullnameOverride | string | "" | Override the full release name |
| deploymentAnnotations | object | {} | Annotations for the Deployment. |
| extraDeploymentLabels | object | {} | Additional labels for the Deployment. |
| podLabels | object | {} | Extra labels applied to the pod |
| podAnnotations | object | {} | Pod annotations applied to the Music Assistant pod |
| commonLabels | object | {} | Labels to add to all resources. |
| podSecurityContext | object | {} | Pod security context |
| resources | object | {} | Resource requests/limits for the pod |
| securityContext | object | {} | Container security context |
| hostNetwork | bool | true | Run the pod in the node network namespace |
| dnsPolicy | string | "ClusterFirst" | DNS policy when using host networking |
| hostPort.enabled | bool | false | Enable hostPort configuration |
| hostPort.webPort | int | 8095 | Host port for the web interface |
| hostPort.streamPort | int | 8097 | Host port for audio streaming |
| service.enabled | bool | false | Create Service resources |
| service.type | string | "ClusterIP" | Service type (ClusterIP/LoadBalancer/NodePort) |
| service.annotations | object | {} | Additional service annotations |
| service.webPort | int | 8095 | Port for the web interface |
| service.streamPort | int | 8097 | Port for audio streaming |
| service.loadBalancerIP | string | "" | Static IP for LoadBalancer services |
| service.loadBalancerSourceRanges | list | [] | Allowed source ranges for LoadBalancer |
| service.externalTrafficPolicy | string | "Cluster" | Preserve client IP (Local) or use Cluster routing |
| service.sessionAffinity | string | "None" | Service session affinity mode |
| ingress.enabled | bool | false | Enable ingress |
| ingress.className | string | "" | Ingress class name |
| ingress.annotations | object | {} | Additional ingress annotations |
| ingress.hosts | list | [{"host":"music-assistant.local","paths":[{"path":"/","pathType":"Prefix"}]}] | Ingress rules configuration |
| ingress.tls | list | [] | TLS configuration for ingress |
| persistence.enabled | bool | true | Enable persistent volume for Music Assistant data |
| persistence.storageClass | string | "" | Storage class for PVC Set to "-" to disable dynamic provisioning and use default storage class Set to "" to use cluster default storage class |
| persistence.accessModes | list | ["ReadWriteOnce"] | Access modes for the PVC |
| persistence.size | string | "2Gi" | Requested PVC size |
| persistence.existingClaim | string | "" | Use an existing PVC instead of creating a new one If defined, PVC must be created manually before volume will be bound |
| persistence.extraLabels | object | {} | Additional labels for PVCs created by this chart. |
| persistence.annotations | object | {} | Annotations for PVC |
| strategy | object | {} | Deployment update strategy (default: Recreate when persistence.enabled) |
| additionalVolumes | list | [] | Extra volumes to mount (e.g., media libraries) |
| additionalMounts | list | [] | Additional volume mounts matching additionalVolumes |
| env | list | [] | Extra environment variables for the container |
| envFrom | list | [] | Environment sources (ConfigMap/Secret refs) |
| livenessProbe | object | {"failureThreshold":3,"httpGet":{"path":"/","port":"web"},"initialDelaySeconds":60,"periodSeconds":30,"timeoutSeconds":10} | Liveness probe configuration |
| readinessProbe | object | {"failureThreshold":3,"httpGet":{"path":"/","port":"web"},"initialDelaySeconds":30,"periodSeconds":10,"timeoutSeconds":5} | Readiness probe configuration |
| startupProbe | object | {"failureThreshold":30,"httpGet":{"path":"/","port":"web"},"initialDelaySeconds":10,"periodSeconds":10,"timeoutSeconds":5} | Startup probe configuration |
| nodeSelector | object | {} | Node selector for scheduling |
| tolerations | list | [] | Pod tolerations |
| affinity | object | {} | Pod affinity/anti-affinity rules |
Contributing
- Bump
version/appVersioninChart.yamlfor 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+ targetedtask pytestbefore 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmusic-assistant is pinned at v0.5.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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