homek8s/apps/base/osint/news-scraper-deployment.yaml

44 lines
1.1 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: osint-news-scraper
namespace: osint
labels:
app: osint-news-scraper
spec:
replicas: 1
selector:
matchLabels:
app: osint-news-scraper
template:
metadata:
labels:
app: osint-news-scraper
spec:
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: siriussec
containers:
- name: news-scraper
image: forgejo.siriusdevops.com/sirius/osint-news-scraper:amd64-58f71f5b4520
imagePullPolicy: IfNotPresent
# Image ENTRYPOINT is `scrapy`; the loop crawls, sleeps, crawls again.
command: ["python", "run_news_scraper.py"]
envFrom:
- configMapRef:
name: osint-env
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: osint-db
key: password
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
memory: 768Mi