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