From 365db1e04e0dfa206b0da0dce09e4b2e1ad73103 Mon Sep 17 00:00:00 2001 From: auricom <27022259+auricom@users.noreply.github.com> Date: Fri, 16 Sep 2022 11:27:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20cronjobs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster/apps/data/pgbackups/deployment.yaml | 2 +- cluster/apps/development/gitea/backup-job.yaml | 6 +++--- cluster/apps/downloaders/qbittorrent-jobs/cron-job.yaml | 8 ++++---- cluster/apps/media-automation/recyclarr/recyclarr.yaml | 2 +- cluster/apps/web-tools/music-transcode/cronjob.yaml | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cluster/apps/data/pgbackups/deployment.yaml b/cluster/apps/data/pgbackups/deployment.yaml index 9a652b7d9..7de1a5921 100644 --- a/cluster/apps/data/pgbackups/deployment.yaml +++ b/cluster/apps/data/pgbackups/deployment.yaml @@ -46,7 +46,7 @@ spec: - name: HEALTHCHECK_PORT value: "8080" - name: WEBHOOK_URL - value: "http://healthchecks.monitoring.svc.cluster.local.:8000/ping/c88641a5-12f2-4f32-ab9c-5a7d122a229e" + value: "http://healthchecks.default.svc.cluster.local.:8000/ping/c88641a5-12f2-4f32-ab9c-5a7d122a229e" resources: requests: cpu: 150m diff --git a/cluster/apps/development/gitea/backup-job.yaml b/cluster/apps/development/gitea/backup-job.yaml index d8e8942d1..99a4bc8b2 100644 --- a/cluster/apps/development/gitea/backup-job.yaml +++ b/cluster/apps/development/gitea/backup-job.yaml @@ -23,8 +23,8 @@ spec: name: gitea-config key: apiToken command: - - "bin/sh" - - "-ec" + - "/bin/bash" + - "-c" - | #!/bin/bash @@ -80,7 +80,7 @@ spec: echo "INFO: Backup done" EOF - curl -m 10 --retry 5 http://healthchecks.monitoring.svc.cluster.local.:8000/ping/f7ff2516-e3b5-41ae-b77f-a9dc09005422 + curl -m 10 --retry 5 http://healthchecks.default.svc.cluster.local.:8000/ping/f7ff2516-e3b5-41ae-b77f-a9dc09005422 volumeMounts: - name: secret mountPath: /opt/id_rsa diff --git a/cluster/apps/downloaders/qbittorrent-jobs/cron-job.yaml b/cluster/apps/downloaders/qbittorrent-jobs/cron-job.yaml index 91d838a34..5bb0fe7dc 100644 --- a/cluster/apps/downloaders/qbittorrent-jobs/cron-job.yaml +++ b/cluster/apps/downloaders/qbittorrent-jobs/cron-job.yaml @@ -18,10 +18,10 @@ spec: image: ghcr.io/auricom/kubectl:v1.25.0@sha256:0862a94ca7d546521aa6c2f917fab5afdcc6caa54a48e0581b29a37c1b11f37d imagePullPolicy: IfNotPresent command: - - "/bin/sh" - - "-ec" + - "/bin/bash" + - "-c" - | - #!/bin/sh + #!/bin/bash set -o nounset set -o errexit @@ -32,6 +32,6 @@ spec: QBITTORRENT_POD=$(echo $result | awk '{ print $NF }') echo $QBITTORRENT_POD | grep qbittorrent test $? -eq 0 && kubectl cp /tmp/ipfilter.dat default/$QBITTORRENT_POD:/config/ipfilter.dat - curl -m 10 --retry 5 http://healthchecks.monitoring.svc.cluster.local.:8000/ping/b4651e4f-5058-436b-a237-0df660e9de9e + curl -m 10 --retry 5 http://healthchecks.default.svc.cluster.local.:8000/ping/b4651e4f-5058-436b-a237-0df660e9de9e kubectl rollout restart deployment qbittorrent --namespace default restartPolicy: Never diff --git a/cluster/apps/media-automation/recyclarr/recyclarr.yaml b/cluster/apps/media-automation/recyclarr/recyclarr.yaml index 9e90b8f6c..bd49f7511 100644 --- a/cluster/apps/media-automation/recyclarr/recyclarr.yaml +++ b/cluster/apps/media-automation/recyclarr/recyclarr.yaml @@ -10,7 +10,7 @@ sonarr: - base_url: http://sonarr - api_key: ${SONARR_API_KEY} + api_key: ${SONARR_APIKEY} quality_definition: hybrid release_profiles: - trash_ids: diff --git a/cluster/apps/web-tools/music-transcode/cronjob.yaml b/cluster/apps/web-tools/music-transcode/cronjob.yaml index 6930ca3b0..c12e6a33e 100644 --- a/cluster/apps/web-tools/music-transcode/cronjob.yaml +++ b/cluster/apps/web-tools/music-transcode/cronjob.yaml @@ -31,8 +31,8 @@ spec: - name: TRANSCODE_FREAC_BIN value: /app/freaccmd command: - - "/bin/sh" - - "-ec" + - "/bin/bash" + - "-c" - | #!/bin/bash @@ -47,7 +47,7 @@ spec: ./transcode.bash -r test $? -ne 0 && HEALTHCHECK=false - test FLAG && curl -m 10 --retry 5 http://healthchecks.monitoring.svc.cluster.local.:8000/ping/b99854a4-d298-4acb-a02c-a56860132de3 + test FLAG && curl -m 10 --retry 5 http://healthchecks.default.svc.cluster.local.:8000/ping/b99854a4-d298-4acb-a02c-a56860132de3 volumeMounts: - name: music-transcoded mountPath: /mnt/music_transcoded