FediFetcher/examples/k8s-cronjob.yaml

50 lines
1.2 KiB
YAML
Raw Permalink 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"
- --reply-interval-in-hours
- "24"
- --max-followings
- "80"
- --max-followers
- "80"
volumeMounts:
- name: artifacts
mountPath: /app/artifacts
restartPolicy: Never