bot-mastodon-image-uploader/cron.yaml

29 lines
793 B
YAML
Raw Normal View History

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
mountPath: /app/
2023-12-08 12:29:23 +00:00
readOnly: true
- name: mastodon-token
mountPath: /app/
2023-12-08 12:29:23 +00:00
readOnly: true
restartPolicy: Never
volumes:
- name: config-toml
2023-12-08 12:29:23 +00:00
configMap:
name: bot-config-toml
2023-12-08 12:29:23 +00:00
- name: mastodon-token
secret:
secretName: mastodon-data