💥 add cronjob for missarr

This commit is contained in:
2024-06-24 16:56:08 +01:00
parent 7923a39de3
commit b82182a848
5 changed files with 92 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM debian:latest
WORKDIR /opt
RUN mkdir /opt/missarr
RUN apt -y update; apt -y install curl
RUN curl -fLvo /opt/missarr/missarr https://github.com/l3uddz/missarr/releases/download/v1.2.0/missarr_v1.2.0_linux_amd64
RUN chmod +x /opt/missarr/missarr
CMD [ "sleep","3600"]
#RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf
#CMD [ "python", "./nextcloud_ics_sync.py",">>","/var/log/nextcloud-ics-sync.log"]
#CMD [ "/opt/missarr/missarr"]
#CMD echo "==================================================================================" >> /var/log/nextcloud-ics-sync.log 2>&1 ; echo $(date) >> /var/log/nextcloud-ics-sync.log 2>&1 ; python ./nextcloud_ics_sync.py >> /var/log/nextcloud-ics-sync.log 2>&1 ; echo "==================================================================================" >> /var/log/nextcloud-ics-sync.log 2>&1
+7
View File
@@ -0,0 +1,7 @@
used this comment https://www.reddit.com/r/kubernetes/comments/10b9ana/comment/j491dzl/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
Specifically with gluetun you must add an environment variable called FIREWALL_INPUT_PORTS. The value is a comma separated list of ports which are in the same pod as the vpn sidecar. I.e if you have nginx exposing port 80 add port 80 to FIREWALL_INPUT_PORTS.
Docs I found this at: https://github.com/qdm12/gluetun/wiki/Firewall-options
Gluetun fonctionne avec l'option du port
+32
View File
@@ -0,0 +1,32 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: missarr
namespace: servarr
spec:
schedule: "0 */6 * * *"
jobTemplate:
spec:
ttlSecondsAfterFinished: 100
template:
spec:
containers:
- name: missarr-radarr
image: localhost:31795/missarr
imagePullPolicy: Always
volumeMounts:
- name: secret-missarr
mountPath: /opt/missarr/config/
command: ["/opt/missarr/missarr","-c","/opt/missarr/config/config.yml","radarr"]
- name: missarr-sonarr
image: localhost:31795/missarr
imagePullPolicy: Always
volumeMounts:
- name: secret-missarr
mountPath: /opt/missarr/config/
command: ["/opt/missarr/missarr","-c","/opt/missarr/config/config.yml","sonarr"]
restartPolicy: Never
volumes:
- name: secret-missarr
secret:
secretName: missarr-config-secret
+30
View File
@@ -0,0 +1,30 @@
apiVersion: batch/v1
kind: Job
metadata:
name: missarr
namespace: servarr
spec:
template:
spec:
containers:
- name: missarr-radarr
image: localhost:31795/missarr
imagePullPolicy: Always
volumeMounts:
- name: secret-missarr
mountPath: /opt/missarr/config/
command: ["/opt/missarr/missarr","-c","/opt/missarr/config/config.yml","radarr"]
- name: missarr-sonarr
image: localhost:31795/missarr
imagePullPolicy: Always
volumeMounts:
- name: secret-missarr
mountPath: /opt/missarr/config/
command: ["/opt/missarr/missarr","-c","/opt/missarr/config/config.yml","sonarr"]
restartPolicy: Never
volumes:
- name: secret-missarr
secret:
secretName: missarr-config-secret
backoffLimit: 4
+8
View File
@@ -0,0 +1,8 @@
apiVersion: v1
data:
config.yml: c29uYXJyOgogIHVybDogaHR0cHM6Ly9zb25hcnIudHJ5dG9uLmdlZXJhZXJ0LmV1LwogIGFwaV9rZXk6IDQ1YmIyYzFhYmM3NDRmZGI4YWQ5MThjN2FjNzViNTYxCnJhZGFycjoKICB1cmw6IGh0dHBzOi8vcmFkYXJyLnRyeXRvbi5nZWVyYWVydC5ldQogIGFwaV9rZXk6IDYyNzQ5YjZhMWU0NjRkMWFiMjg5OTdhZTIzYTY5YTI3Cg==
kind: Secret
metadata:
creationTimestamp: null
name: missarr-config-secret
namespace: servarr