bot-mastodon-image-uploader/cron.yaml

29 lines
822 B
YAML
Raw Permalink 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
2024-01-29 12:15:09 +00:00
image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:v1.0.0
2023-12-08 12:29:23 +00:00
volumeMounts:
- name: config-toml
2024-01-29 12:15:09 +00:00
mountPath: /app/config.toml
2023-12-08 12:29:23 +00:00
readOnly: true
- name: mastodon-token
2024-01-29 12:15:09 +00:00
mountPath: /app/mastodon-data.toml
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