mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 15:37:44 +02:00
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
---
|
|
apiVersion: batch/v1beta1
|
|
kind: CronJob
|
|
metadata:
|
|
name: radarr-trash-updater
|
|
namespace: media
|
|
spec:
|
|
schedule: "@weekly"
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
metadata:
|
|
name: radarr-trash-updater
|
|
spec:
|
|
serviceAccountName: jobs
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: trash-updater
|
|
image: registry.${SECRET_CLUSTER_DOMAIN}/homelab/home-cluster-jobs:1.0.0
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
|
|
value: "1"
|
|
command:
|
|
- "bin/sh"
|
|
- "-ec"
|
|
- |
|
|
#!/bin/sh
|
|
|
|
set -o nounset
|
|
set -o errexit
|
|
|
|
cd /tmp
|
|
curl --location https://github.com/rcdailey/trash-updater/releases/latest/download/trash-linux-x64.zip --output ./trash.zip
|
|
unzip trash.zip
|
|
chmod 755 trash
|
|
|
|
./trash radarr --config /opt/trash.yaml
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /opt/trash.yaml
|
|
subPath: trash.yaml
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: radarr-trash-updater-config
|
|
restartPolicy: Never
|