FediFetcher/examples/k8s-cronjob.yaml

48 lines
1.1 KiB
YAML
Raw Normal View History

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
2023-03-27 08:02:59 +02:00
name: fedifetcher-pvc
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 100Mi
---
apiVersion: batch/v1
kind: CronJob
metadata:
2023-03-27 08:02:59 +02:00
name: FediFetcher
spec:
# Run every 2 hours
schedule: "0 */2 * * *"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
volumes:
- name: artifacts
persistentVolumeClaim:
2023-03-27 08:02:59 +02:00
claimName: fedifetcher-pvc
containers:
2023-03-27 08:02:59 +02:00
- name: FediFetcher
image: ghcr.io/nanos/fedifetcher:latest
args:
- --server=your.server.social
- --access-token=TOKEN
2023-03-19 14:19:53 +01:00
- --home-timeline-length
- "200"
- --max-followings
- "80"
- --from-notification
- "4"
volumeMounts:
- name: artifacts
mountPath: /app/artifacts
restartPolicy: Never