mastodon-image-uploader-bot/cron.yaml

31 lines
921 B
YAML

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
# Command to execute your Rust application or script
command: ["/path/to/your/rust/executable"]
volumeMounts:
- name: config-toml
mountPath: /botuser/
readOnly: true
- name: mastodon-token
mountPath: /botuser/
readOnly: true
restartPolicy: Never
volumes:
- name: config-volume
configMap:
name: my-config
- name: mastodon-token
secret:
secretName: mastodon-data