29 lines
793 B
YAML
29 lines
793 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
|
|
volumeMounts:
|
|
- name: config-toml
|
|
mountPath: /app/
|
|
readOnly: true
|
|
- name: mastodon-token
|
|
mountPath: /app/
|
|
readOnly: true
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: config-toml
|
|
configMap:
|
|
name: bot-config-toml
|
|
- name: mastodon-token
|
|
secret:
|
|
secretName: mastodon-data
|