mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
refactor: music-transcode
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: &app homelab-music-transcode
|
||||
namespace: default
|
||||
spec:
|
||||
interval: 30m
|
||||
chart:
|
||||
spec:
|
||||
chart: app-template
|
||||
version: 3.6.1
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bjw-s
|
||||
namespace: flux-system
|
||||
maxHistory: 2
|
||||
install:
|
||||
createNamespace: true
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
cleanupOnFail: true
|
||||
remediation:
|
||||
strategy: rollback
|
||||
retries: 3
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
values:
|
||||
controllers:
|
||||
music-transcode:
|
||||
type: cronjob
|
||||
cronjob:
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "@daily"
|
||||
containers:
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/auricom/freac
|
||||
tag: 1.1.7@sha256:ed89c0d4476e7291caf271acfc54636b5649076478f86b05c1ab89eeea3873ee
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
cd /app
|
||||
|
||||
/app/transcode.sh -c
|
||||
/app/transcode.sh -r
|
||||
env:
|
||||
TRANSCODE_INPUT_DIR: /mnt/music/
|
||||
TRANSCODE_OUTPUT_DIR: /mnt/music_transcoded/
|
||||
TRANSCODE_FREAC_BIN: /app/freaccmd
|
||||
service:
|
||||
app:
|
||||
controller: *app
|
||||
enabled: false
|
||||
persistence:
|
||||
scripts:
|
||||
type: configMap
|
||||
name: music-transcode-configmap
|
||||
defaultMode: 0775
|
||||
globalMounts:
|
||||
- path: /app/transcode.sh
|
||||
subPath: transcode.sh
|
||||
readOnly: true
|
||||
exclude:
|
||||
type: configMap
|
||||
name: music-transcode-configmap
|
||||
defaultMode: 0775
|
||||
globalMounts:
|
||||
- path: /app/transcode_exclude.cfg
|
||||
subPath: transcode_exclude.cfg
|
||||
readOnly: true
|
||||
music:
|
||||
type: nfs
|
||||
path: /var/mnt/vol1/music
|
||||
server: 192.168.9.10
|
||||
globalMounts:
|
||||
- path: /mnt/music
|
||||
music-transcoded:
|
||||
type: nfs
|
||||
path: /var/mnt/vol1/music_transcoded
|
||||
server: 192.168.9.10
|
||||
globalMounts:
|
||||
- path: /mnt/music_transcoded
|
Reference in New Issue
Block a user