music-assistant-server

by andibraeu

Helm chartv2.1.10App 2.10.12Verified publisher

Music Assistant is a free, opensource Media library manager that connects to your streaming services and a wide range of connected speakers.

About this chart

Music Assistant Server Helm Chart

Description

This Helm chart installs a Music Assistant Server in your Kubernetes cluster. Music Assistant is a powerful media server for integrating music streaming services and controlling devices in your home network.

The server always runs as a single replica to maintain proper state management.

Installation

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

Configuration

Basic Configuration

deploymentStrategy:
  type: RollingUpdate  # Can be "Recreate" or "RollingUpdate"
  rollingUpdate:
    maxSurge: 1
    maxUnavailable: 0

image:
  repository: ghcr.io/music-assistant/server
  tag: ""  # Leave empty to use the Chart's appVersion as tag
  pullPolicy: IfNotPresent

hostNetwork: false  # Set to true to enable network access at host level

Service

service:
  type: ClusterIP
  ports:
    web:
      port: 80
      targetPort: 8095
    devices:
      port: 8097
      targetPort: 8097

Persistence

The Music Assistant Server data is stored in a persistent volume:

persistence:
  enabled: true
  size: 10Gi
  mountPath: /data
  accessMode: ReadWriteOnce
  storageClass: ""  # Leave empty for the default StorageClass or specify your own

OAuth2 Proxy

The chart offers the option to enable an OAuth2 proxy for authentication:

oauth2Proxy:
  enabled: false  # Set to true to enable OAuth2 Proxy
  image:
    repository: quay.io/oauth2-proxy/oauth2-proxy
    tag: latest
    pullPolicy: IfNotPresent
  config:
    provider: oidc
    providerDisplayName: "Authentik"
    skipProviderButton: true
    passAuthorizationHeader: true
    setAuthorizationHeader: true
    oidcIssuerURL: "oidc-issuer-url"
    redirectURL: "redirect-url"
    sessionStoreType: cookie
    cookieRefresh: 119m
    clientID: ""
    clientSecret: ""
    cookieSecret: ""
  secretRef: ""  # Name of an existing Kubernetes Secret if secrets should be used

OAuth2 Secrets

You can either specify the OAuth2 configuration values directly in the values.yaml or create a Kubernetes Secret containing the following values:

apiVersion: v1
kind: Secret
metadata:
  name: oauth2-proxy-secrets
type: Opaque
data:
  client-id: <base64-encoded-client-id>
  client-secret: <base64-encoded-client-secret>
  cookie-secret: <base64-encoded-cookie-secret>

And then reference this Secret in your values.yaml:

oauth2Proxy:
  secretRef: "oauth2-proxy-secrets"

Ingress Configuration

You can expose Music Assistant via an Ingress resource. Ingress can be used with or without an enabled OAuth2 Proxy.

ingress:
  enabled: false  # Set to true to create an Ingress resource
  hostname: music-assistant.local
  annotations: {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
    # external-dns.alpha.kubernetes.io/hostname: music-assistant.example.com
  tls:
    enabled: false
    secretName: music-assistant-tls
    # If secretName is not specified, a secret can be generated by cert-manager using appropriate annotations
    # cert-manager.io/cluster-issuer: letsencrypt

Ingress without OAuth2 Proxy

When oauth2Proxy.enabled: false and ingress.enabled: true are set, the Ingress routes directly to the Music Assistant service port (service.ports.web.port, by default 80 → container port 8095).

Ingress with OAuth2 Proxy

When both oauth2Proxy.enabled: true and ingress.enabled: true are set:

  1. The oauth2-proxy container is started in the Deployment.
  2. The Ingress routes traffic to the OAuth2 Proxy (port 4180).
  3. The OAuth2 Proxy forwards traffic to the internal Music Assistant port (8095) after successful authentication.

## Host Network

When you set `hostNetwork: true`, the container will run directly on the host network. This enables:

1. Direct access to ports from the host (8095 for Web UI, 8097 for device communication)
2. Enhanced network capabilities for detecting devices in the local network

Note, however, that this may have security implications and in multi-node clusters, the application will only be accessible on the specific node where the pod is running.

## Automated Updates

This chart is configured to work with Renovate for automated updates. When a new version of Music Assistant is released:

1. Renovate will automatically update the `appVersion` in `Chart.yaml`
2. Renovate will increment the chart's `version` in the same pull request
3. The deployment will use the new appVersion as the default image tag when no specific tag is provided

This ensures your chart always stays up-to-date with the latest Music Assistant releases. 

Deploy music-assistant-server 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-server 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-server is pinned at v2.1.10 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