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:
@@ -17,7 +17,6 @@ resources:
|
||||
- ./flood/ks.yaml
|
||||
- ./freshrss/ks.yaml
|
||||
- ./gitea/ks.yaml
|
||||
- ./github-pushover-notifier/ks.yaml
|
||||
- ./glauth/ks.yaml
|
||||
- ./hajimari/ks.yaml
|
||||
- ./home-assistant/ks.yaml
|
||||
@@ -40,6 +39,7 @@ resources:
|
||||
- ./paperless/ks.yaml
|
||||
- ./pgadmin/ks.yaml
|
||||
- ./prowlarr/ks.yaml
|
||||
- ./pushover-notifier/ks.yaml
|
||||
- ./pyload/ks.yaml
|
||||
- ./qbittorrent/ks.yaml
|
||||
- ./radarr/ks.yaml
|
||||
|
@@ -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
|
||||
|
@@ -3,7 +3,7 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: &app github-pushover-notifier
|
||||
name: &app pushover-notifier-github-releases
|
||||
namespace: default
|
||||
spec:
|
||||
interval: 15m
|
||||
@@ -33,11 +33,11 @@ spec:
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "23 */3 * * *"
|
||||
image:
|
||||
repository: ghcr.io/auricom/github-pushover-notifier
|
||||
tag: rolling@sha256:3ce89c7dcbbf1eaef98c2e2ae70b8ca6dd984ec56d018ed971938c95fd073557
|
||||
repository: ghcr.io/auricom/python
|
||||
tag: rolling@sha256:7bd5bf78236f5e7e0cc61b87e0dbd745bdc3588e3555b811960624930b9799f0
|
||||
command:
|
||||
- python
|
||||
- /app/github-pushover-notifier.py
|
||||
- /app/script.py
|
||||
service:
|
||||
main:
|
||||
enabled: false
|
||||
@@ -45,7 +45,7 @@ spec:
|
||||
POSTGRES_HOST: ${POSTGRES_HOST}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: github-pushover-notifier-secret
|
||||
name: pushover-notifier-github-releases-secret
|
||||
podAnnotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
resources:
|
||||
@@ -58,12 +58,12 @@ spec:
|
||||
config:
|
||||
enabled: true
|
||||
type: configMap
|
||||
name: github-pushover-notifier-configmap
|
||||
name: pushover-notifier-github-releases-configmap
|
||||
mountPath: /app/config.yaml
|
||||
subPath: config.yaml
|
||||
repositories:
|
||||
script:
|
||||
enabled: true
|
||||
type: configMap
|
||||
name: github-pushover-notifier-configmap
|
||||
mountPath: /app/github-pushover-notifier.py
|
||||
subPath: github-pushover-notifier.py
|
||||
name: pushover-notifier-github-releases-configmap
|
||||
mountPath: /app/script.py
|
||||
subPath: script.py
|
@@ -9,9 +9,9 @@ resources:
|
||||
patchesStrategicMerge:
|
||||
- ./patches/postgres.yaml
|
||||
configMapGenerator:
|
||||
- name: github-pushover-notifier-configmap
|
||||
- name: pushover-notifier-github-releases-configmap
|
||||
files:
|
||||
- ./config/config.yaml
|
||||
- ./config/github-pushover-notifier.py
|
||||
- ./config/script.py
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
@@ -3,7 +3,7 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: github-pushover-notifier
|
||||
name: pushover-notifier-github-releases
|
||||
namespace: default
|
||||
spec:
|
||||
values:
|
||||
@@ -20,4 +20,4 @@ spec:
|
||||
key: password
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: github-pushover-notifier-secret
|
||||
name: pushover-notifier-github-releases-secret
|
@@ -2,7 +2,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: github-pushover-notifier-secret
|
||||
name: pushover-notifier-github-releases-secret
|
||||
namespace: default
|
||||
type: Opaque
|
||||
stringData:
|
||||
@@ -26,8 +26,8 @@ sops:
|
||||
OGVKWU0zNUZJSFh4aFJxQWFsYm1VeFkKaDeI/hl7z0Qh8t5W39Kxu9ert1dt4xo+
|
||||
LX+MjpVqxiZNcfwROD4bkWeQSN+VsxoGOOyj4L15BlggNnlg+L7Hww==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2023-03-16T01:31:13Z"
|
||||
mac: ENC[AES256_GCM,data:XXWzdXCDpiT8u+3C8UpppETsPeillRBzqp99bk9I2NVIs0Z0EjHEQ9cFNQ07CNuwqy7w4ta+ZnGWQGDRrOZrbNclF/z3dj7TJ0VXXil6YbuSQe5+a1x9M4RnDnJC4xPhnplNMewcQ5tqbmZJ6hMaO6VMRShuZkTq15qXl2op1Dw=,iv:7pXYwZhp/tNG83+2pplvNbhx2HRuP2qkWOK3c+1sSmU=,tag:4hJsjMyrAcZQfV8O642WAA==,type:str]
|
||||
lastmodified: "2023-03-18T13:42:19Z"
|
||||
mac: ENC[AES256_GCM,data:1qGdFDmCJw2rnKQfhLbx/qENNRGKBQnW/r+/xWtrSTFX3qM8L7EK/qqStyfXYiNdxYa7EkvmwzXde7zCMm3kEnfVo3oPjkz30ZR4yEN2dHHfHvaop+b8BtpU9jBi3cDMn3R/jpTjUltVzU/nJjH/ezFzSrnOwKcvlFxOsD2TBvs=,iv:igCtiZAzdpK4k3bmMTT6LFbjZu7wk/9t5JZOTvqgHUg=,tag:7fCVE3/wv3rgXWHb+6wPhg==,type:str]
|
||||
pgp: []
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
version: 3.7.3
|
@@ -3,12 +3,12 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cluster-apps-github-pushover-notifier
|
||||
name: cluster-apps-pushover-notifier-github-releases
|
||||
namespace: flux-system
|
||||
labels:
|
||||
substitution.flux.home.arpa/enabled: "true"
|
||||
spec:
|
||||
path: ./kubernetes/apps/default/github-pushover-notifier/app
|
||||
path: ./kubernetes/apps/default/pushover-notifier/github-releases
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
@@ -16,7 +16,7 @@ spec:
|
||||
healthChecks:
|
||||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
name: github-pushover-notifier
|
||||
name: pushover-notifier-github-releases
|
||||
namespace: default
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
Reference in New Issue
Block a user