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