Files
auricom-home-cluster/kubernetes/apps/default/music-transcode/app/helm-release.yaml
2023-06-07 15:18:21 +00:00

88 lines
2.0 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: music-transcode
namespace: default
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 1.4.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 3
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controller:
type: cronjob
cronjob:
concurrencyPolicy: Forbid
schedule: "@daily"
restartPolicy: OnFailure
image:
repository: ghcr.io/auricom/freac
tag: 1.1.7@sha256:76cec7d187ce47fa46126dd667f31d16c280dd25f717879b05679347d15c6157
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:
main:
enabled: false
persistence:
scripts:
enabled: true
type: configMap
name: music-transcode-configmap
subPath: transcode.sh
mountPath: /app/transcode.sh
defaultMode: 0775
readOnly: true
exclude:
enabled: true
type: configMap
name: music-transcode-configmap
subPath: transcode_exclude.cfg
mountPath: /app/transcode_exclude.cfg
defaultMode: 0775
readOnly: true
music:
enabled: true
type: nfs
mountPath: /mnt/music
path: /mnt/storage/music
server: ${LOCAL_LAN_TRUENAS}
music-transcoded:
enabled: true
type: nfs
mountPath: /mnt/music_transcoded
path: /mnt/storage/music_transcoded
server: ${LOCAL_LAN_TRUENAS}