tinymediamanager
by drinkataco
Media manager for movies and TV shows
About this chart
tinyMediaManager Helm Chart
This Helm chart installs tinyMediaManager, a media manager for movies and TV shows, in a Kubernetes cluster.
This README covers the basics of customising and installation
- Installation
- Configuration
- Application Configuration
- Volumes
- Ingress
- Headless Mode
- Advanced
- Upgrading
- Uninstallation
- Support
Installation
Install this helm chart using the following command:
helm repo add media-servarr https://media-servarr.shw.al/charts
helm install tinymediamanager media-servarr/tinymediamanager
By default, this chart exposes tinyMediaManager at http://tinymediamanager.local/
Configuration
Here are some examples of configuration you may want to override (and include in installation with -f myvalues.yaml).
Application Configuration
A startup configuration is defined using a ConfigMap in application.config
application:
port: 4000
config:
filename: 'launcher-extra.yml'
contents: |
jvmOpts:
- "-Xmx1024m"
mountPath: '/app/launcher-extra.yml'
The chart exposes two container ports: http (4000, the web UI) and api (7878, the REST API used by companion apps). Both are declared in deployment.container.ports and exposed on the Service.
You can prevent a ConfigMap being created and the configuration being managed as a kubernetes resource by defining the config as null. For example:
application:
...
config: null
Volumes
Three volumes are available by default:
- data - tinyMediaManager application data, logs, cache, and backups
- film - Location of movies, mounted at
/media/film - television - Location of TV shows, mounted at
/media/tv
tinyMediaManager refuses to add a folder at the root of the container filesystem (such as /film) as a data source, so media is mounted under /media.
deployment:
...
volumes:
data:
persistentVolumeClaim:
claimName: 'tinymediamanager-data'
film:
nfs:
server: 'fileserver.local'
path: '/srv/media/film/'
television:
nfs:
server: 'fileserver.local'
path: '/srv/media/television/'
By default, a PersistentVolumeClaim will be provisioned for data, but emptyDir: {} will be used for film and television unless otherwise specified in your values.yaml
persistentVolumeClaims:
tinymediamanager-data:
accessMode: 'ReadWriteOnce'
requestStorage: '20Gi'
storageClassName: 'manual'
# volumeName: 'existing-pv-name' # optional: bind this PVC to a specific pre-existing PV
selector:
matchLabels:
type: 'local'
Ingress
tinyMediaManager is best exposed on a dedicated host at /, rather than under a shared path prefix. This chart therefore defaults to a dedicated host and a root path.
ingress:
enabled: true
host: 'tinymediamanager.example.com'
path: '/'
tls:
# Your TLS settings...
Headless Mode
The web UI is a full desktop session over noVNC, but tinyMediaManager can also be driven without it.
HTTP API - enable it in Settings > General > System > HTTP API and set an API key. The chart already exposes it on the api port (7878), so it can be called from inside the cluster, for example from a CronJob:
curl -X POST http://tinymediamanager:7878/api/movie \
-H 'Content-Type: application/json' \
-H 'api-key: <your-api-key>' \
-d '[{"action":"update","scope":{"name":"all"}},{"action":"scrape","scope":{"name":"new"}}]'
Use /api/tvshow for TV shows. See the HTTP API docs for the available actions.
Without the UI - started with --start-api, tinyMediaManager runs headless and is controlled only through the HTTP API, without the desktop session (X, VNC, noVNC) the image starts by default:
deployment:
container:
command:
- '/app/tinyMediaManager'
- '-Dtmm.contentfolder=/data'
- '--start-api'
securityContext:
runAsUser: 1000
runAsGroup: 1000
ingress:
enabled: false
- Enable the HTTP API and set its key in the UI first, as there's no UI to change settings in once headless.
commandreplaces the image's entrypoint, which is also what appliesUSER_IDandGROUP_ID, sosecurityContextsets the same IDs to keep the ownership of files on the data volume.- Nothing is served on the
httpport, so the ingress is disabled.
Remove these overrides to bring the UI back. See Automated one-shot tasks for more on --start-api.
Command line - the tinyMediaManager binary accepts movie and tvshow commands, which can be run in the pod:
kubectl exec deploy/tinymediamanager -- /app/tinyMediaManager movie -u -n -r
See the command line docs for all flags.
Advanced
Other supported deployment configuration include deployment.nodeSelector, deployment.tolerations, and deployment.affinity
You can also adjust container ports, environment variables and define a serviceAccount.
Have a look at the parent charts default values.yaml for a comprehensive list of available config.
Upgrading
To upgrade the deployment:
helm upgrade tinymediamanager media-servarr/tinymediamanager -f myvalues.yaml
Uninstallation
To uninstall/delete the tinymediamanager deployment:
helm uninstall tinymediamanager
Support
For support, issues, or feature requests, please file an issue on the chart's repository issue tracker.
Deploy tinymediamanager with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tinymediamanager 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 charttinymediamanager is pinned at v2.0.0 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