mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-03 09:09:01 +02:00
🐛 cronjobs
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user