2026-01-16 20:33:37 +00:00
|
|
|
|
|
|
|
|
apiVersion: batch/v1
|
|
|
|
|
kind: CronJob
|
|
|
|
|
metadata:
|
|
|
|
|
name: news-scraper
|
|
|
|
|
namespace: customer1
|
|
|
|
|
spec:
|
2026-02-09 22:48:59 +00:00
|
|
|
schedule: "50 * * * *"
|
2026-01-16 20:33:37 +00:00
|
|
|
jobTemplate:
|
|
|
|
|
spec:
|
|
|
|
|
template:
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: news-scraper
|
2026-05-27 23:07:57 -04:00
|
|
|
image: ghcr.io/sirius0xdev/newsscraper:latest
|
2026-02-07 22:44:08 +00:00
|
|
|
imagePullPolicy: "Always"
|
2026-02-07 22:13:17 +00:00
|
|
|
|
2026-01-21 20:37:07 -05:00
|
|
|
resources:
|
|
|
|
|
requests:
|
2026-02-10 05:31:35 +00:00
|
|
|
memory: "1Gi"
|
2026-01-21 20:37:07 -05:00
|
|
|
cpu: "500m"
|
2026-03-22 19:24:53 +00:00
|
|
|
limits:
|
|
|
|
|
memory: "2Gi"
|
|
|
|
|
cpu: "1000m"
|
2026-01-16 20:33:37 +00:00
|
|
|
envFrom:
|
|
|
|
|
- configMapRef:
|
|
|
|
|
name: scrapy-config
|
|
|
|
|
env:
|
|
|
|
|
- name: DB_PASSWORD
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
2026-03-22 19:24:53 +00:00
|
|
|
name: news-app-password
|
2026-01-16 20:33:37 +00:00
|
|
|
key: password
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: url-storage
|
|
|
|
|
mountPath: /app/urls.txt
|
|
|
|
|
subPath: urls.txt
|
2026-01-21 20:37:07 -05:00
|
|
|
|
|
|
|
|
- mountPath: /dev/shm
|
|
|
|
|
name: dshm
|
2026-01-16 20:33:37 +00:00
|
|
|
volumes:
|
|
|
|
|
- name: url-storage
|
|
|
|
|
configMap:
|
|
|
|
|
name: scrapy-urls
|
2026-01-21 20:37:07 -05:00
|
|
|
- name: dshm
|
|
|
|
|
emptyDir:
|
|
|
|
|
medium: Memory
|
2026-01-16 20:33:37 +00:00
|
|
|
restartPolicy: OnFailure
|
|
|
|
|
|