add cronjob for fireflyiii

This commit is contained in:
SeanOMik 2023-06-17 15:09:11 -04:00
parent 6a3821e9a9
commit aed8a8ae49
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 39 additions and 3 deletions

View File

@ -0,0 +1,34 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: firefly-cronjob
namespace: default
spec:
# 0am every day
schedule: "0 0 * * *"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 2
jobTemplate:
spec:
template:
spec:
containers:
- name: firefly-cronjob
image: frolvlad/alpine-bash
imagePullPolicy: IfNotPresent
command:
- /bin/bash
- -c
- wget -qO- https://firefly-iii.default/api/v1/cron/$(cat /etc/crontoken)
volumeMounts:
- name: ff-secret
mountPath: /etc/crontoken
subPath: STATIC_CRON_TOKEN
securityContext:
runAsNonRoot: true
runAsUser: 1000
restartPolicy: OnFailure
volumes:
- name: ff-secret
secret:
secretName: firefly-env-secret

View File

@ -67,14 +67,15 @@ stringData:
SITE_OWNER: ENC[AES256_GCM,data:KbzTQ/QdlMmxnSDr1mCo4EG9,iv:287MEAzZFE3+zp3bWWA5Y2u3w7iQH+7AAZ812I4Elx0=,tag:TlljmsgLww7EJIBMdDrKvA==,type:str] SITE_OWNER: ENC[AES256_GCM,data:KbzTQ/QdlMmxnSDr1mCo4EG9,iv:287MEAzZFE3+zp3bWWA5Y2u3w7iQH+7AAZ812I4Elx0=,tag:TlljmsgLww7EJIBMdDrKvA==,type:str]
TRUSTED_PROXIES: ENC[AES256_GCM,data:cAU=,iv:MBL/z8pmM2CxlDT1sY4my2gC3jsDo6O1NSa11w3en5U=,tag:zqzHOR69HT3+U7tQOFQQSw==,type:str] TRUSTED_PROXIES: ENC[AES256_GCM,data:cAU=,iv:MBL/z8pmM2CxlDT1sY4my2gC3jsDo6O1NSa11w3en5U=,tag:zqzHOR69HT3+U7tQOFQQSw==,type:str]
TZ: ENC[AES256_GCM,data:45gLKxH0OsAfMPkgnjKgWQ==,iv:P9CUovVI4WSfZi1nyFHVzHJ7Oioai1FUZRcgBNhQb64=,tag:S7IF8Oxg7hYNcT0mcgkg7Q==,type:str] TZ: ENC[AES256_GCM,data:45gLKxH0OsAfMPkgnjKgWQ==,iv:P9CUovVI4WSfZi1nyFHVzHJ7Oioai1FUZRcgBNhQb64=,tag:S7IF8Oxg7hYNcT0mcgkg7Q==,type:str]
STATIC_CRON_TOKEN: ENC[AES256_GCM,data:1xck+8s3ifQmregeKU6891pErxZy86fO0I6XPE83l3o=,iv:XSsCSJkkGwG12f2lhd6IDl07OLVCW8J/945acFP99lA=,tag:XNxSQGyHvR/6/A3EVT69gg==,type:str]
sops: sops:
kms: [] kms: []
gcp_kms: [] gcp_kms: []
azure_kv: [] azure_kv: []
hc_vault: [] hc_vault: []
age: [] age: []
lastmodified: "2023-06-09T02:24:07Z" lastmodified: "2023-06-17T19:05:29Z"
mac: ENC[AES256_GCM,data:vH9g4Oua7GSJD8Ptzxg3wOz6Ytx6NoUeLZ3SOxeyFb01fVwNNg691tHQiHarEGGljCIzfSINn8GJ6ArpTQCGiBWFXXrO21owcmzgsQn3VfCDoKS3hEh4zFywwBNBGIOD/AphidmfU2Y8l7qNhY1O3p1Aq7o2xCxB+ee8q0TDw50=,iv:nPzm426vn/H+S9nI0Q83P6pNqpNyTJ/Gua0CdLx6tyk=,tag:PPe0DXa1Sb3KiqJBbyb+fQ==,type:str] mac: ENC[AES256_GCM,data:GWtQz5/wKpk38ZYLwn+kGyCT8hFo2SmoaI9vuEFju6N9ipJW1MNQONqTx/Qa8Cje8pT7xIxdoTf+23PaFG91v/gcilMCYjE+OFnVBk80d6ZBTXiSmoQ0DYO3hWiXyMfXTJ1OPqExOkY09QSAfXOrN0JphnWpPNZnaVuxMJZS/Og=,iv:/QbEi6hhsPpeSa5bOxPObP8UUpAwA/I6wU8VXQ6NcOc=,tag:FYYj1y/zTl82SVva0oauuA==,type:str]
pgp: pgp:
- created_at: "2023-04-22T06:45:59Z" - created_at: "2023-04-22T06:45:59Z"
enc: | enc: |

View File

@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./env-secret.sops.yaml - ./env-secret.sops.yaml
- ./helm-release.yaml - ./helm-release.yaml
- ./daily-cronjob.yaml