2023-12-08 12:29:23 +00:00
|
|
|
apiVersion: batch/v1beta1
|
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: bot-cronjob
|
|
|
|
spec:
|
|
|
|
schedule: "* */6 * * *" # Runs every 6 hours
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: bot-job
|
|
|
|
image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:latest
|
|
|
|
volumeMounts:
|
|
|
|
- name: config-toml
|
2024-01-21 16:21:08 +00:00
|
|
|
mountPath: /app/
|
2023-12-08 12:29:23 +00:00
|
|
|
readOnly: true
|
|
|
|
- name: mastodon-token
|
2024-01-21 16:21:08 +00:00
|
|
|
mountPath: /app/
|
2023-12-08 12:29:23 +00:00
|
|
|
readOnly: true
|
|
|
|
restartPolicy: Never
|
|
|
|
volumes:
|
2024-01-21 16:21:08 +00:00
|
|
|
- name: config-toml
|
2023-12-08 12:29:23 +00:00
|
|
|
configMap:
|
2024-01-21 16:21:08 +00:00
|
|
|
name: bot-config-toml
|
2023-12-08 12:29:23 +00:00
|
|
|
- name: mastodon-token
|
|
|
|
secret:
|
|
|
|
secretName: mastodon-data
|