mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 15:37:44 +02:00
♻️ apply kube templates
This commit is contained in:
89
kubernetes/apps/default/music-transcode/app/helmrelease.yaml
Normal file
89
kubernetes/apps/default/music-transcode/app/helmrelease.yaml
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: music-transcode
|
||||
namespace: default
|
||||
spec:
|
||||
interval: 30m
|
||||
chart:
|
||||
spec:
|
||||
chart: app-template
|
||||
version: 2.4.0
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bjw-s
|
||||
namespace: flux-system
|
||||
maxHistory: 2
|
||||
install:
|
||||
createNamespace: true
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
cleanupOnFail: true
|
||||
remediation:
|
||||
retries: 3
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
values:
|
||||
controllers:
|
||||
main:
|
||||
type: cronjob
|
||||
cronjob:
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "@daily"
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/auricom/freac
|
||||
tag: 1.1.7@sha256:2b3fe1838e00f4e14ef0db71115136760d4f61db96e3da1153f599331567ed99
|
||||
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:
|
||||
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: /mnt/storage/music
|
||||
server: ${LOCAL_LAN_TRUENAS}
|
||||
globalMounts:
|
||||
- path: /mnt/music
|
||||
music-transcoded:
|
||||
type: nfs
|
||||
path: /mnt/storage/music_transcoded
|
||||
server: ${LOCAL_LAN_TRUENAS}
|
||||
globalMounts:
|
||||
- path: /mnt/music_transcoded
|
Reference in New Issue
Block a user