mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
♻️ rename github-releases job
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: music-transcode
|
||||
namespace: default
|
||||
spec:
|
||||
schedule: "0 2 * * *"
|
||||
suspend: true
|
||||
concurrencyPolicy: "Forbid"
|
||||
successfulJobsHistoryLimit: 3
|
||||
failedJobsHistoryLimit: 5
|
||||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: 3
|
||||
ttlSecondsAfterFinished: 300
|
||||
template:
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
restartPolicy: OnFailure
|
||||
initContainers:
|
||||
containers:
|
||||
- name: transcode-incremental
|
||||
image: ghcr.io/auricom/freac:1.1.7@sha256:6f2f01265beb627567457d74a9df2f24c0a967baf1f0f9232626a6b903e82a0f
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: TRANSCODE_INPUT_DIR
|
||||
value: /mnt/music/
|
||||
- name: TRANSCODE_OUTPUT_DIR
|
||||
value: /mnt/music_transcoded/
|
||||
- name: TRANSCODE_FREAC_BIN
|
||||
value: /app/freaccmd
|
||||
command:
|
||||
- "/bin/bash"
|
||||
- "-c"
|
||||
- |
|
||||
#!/bin/bash
|
||||
|
||||
cp /app/transcode/transcode.sh /tmp/transcode.sh
|
||||
cp /app/transcode/transcode_exclude.cfg /tmp/transcode_exclude.cfg
|
||||
chmod +x /tmp/transcode.sh
|
||||
|
||||
cd /tmp
|
||||
./transcode.sh -c
|
||||
./transcode.sh -r
|
||||
|
||||
volumeMounts:
|
||||
- name: music-transcoded
|
||||
mountPath: /mnt/music_transcoded
|
||||
- name: music
|
||||
mountPath: /mnt/music
|
||||
- name: scripts
|
||||
mountPath: /app/scripts
|
||||
readOnly: true
|
||||
|
||||
volumes:
|
||||
- name: music-transcoded
|
||||
nfs:
|
||||
server: "${LOCAL_LAN_TRUENAS}"
|
||||
path: /mnt/storage/music_transcoded
|
||||
- name: music
|
||||
nfs:
|
||||
server: "${LOCAL_LAN_TRUENAS}"
|
||||
path: /mnt/storage/music
|
||||
- name: scripts
|
||||
configMap:
|
||||
name: transcode-configmap
|
@@ -0,0 +1,75 @@
|
||||
---
|
||||
# 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.3.2
|
||||
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:6f2f01265beb627567457d74a9df2f24c0a967baf1f0f9232626a6b903e82a0f
|
||||
command: ["/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}
|
@@ -4,9 +4,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: default
|
||||
resources:
|
||||
- ./cronjob.yaml
|
||||
- ./helm-release.yaml
|
||||
configMapGenerator:
|
||||
- name: transcode-configmap
|
||||
- name: music-transcode-configmap
|
||||
files:
|
||||
- ./scripts/transcode.sh
|
||||
- ./scripts/transcode_exclude.cfg
|
||||
|
Reference in New Issue
Block a user