2026-05-05 01:28:59 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: scraper
|
|
|
|
|
namespace: microservices
|
|
|
|
|
labels:
|
|
|
|
|
app: scraper
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: scraper
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: scraper
|
|
|
|
|
spec:
|
2026-05-05 01:52:24 +00:00
|
|
|
imagePullSecrets:
|
|
|
|
|
- name: ghcr-pull-secret
|
2026-05-05 01:28:59 +00:00
|
|
|
containers:
|
|
|
|
|
- name: scraper
|
|
|
|
|
image: ghcr.io/openstaticfish/microservices/scraper:main
|
|
|
|
|
imagePullPolicy: Always
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
env:
|
|
|
|
|
- name: PORT
|
|
|
|
|
value: "8080"
|
|
|
|
|
- name: WEBSHARE_API_KEY
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: webshare-api
|
|
|
|
|
key: api-key
|
|
|
|
|
optional: true
|
|
|
|
|
- name: WEBSHARE_PROXY_USERNAME
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: webshare-api
|
|
|
|
|
key: proxy-username
|
|
|
|
|
optional: true
|
|
|
|
|
- name: WEBSHARE_PROXY_PASSWORD
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: webshare-api
|
|
|
|
|
key: proxy-password
|
|
|
|
|
optional: true
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
|
|
|
|
memory: 64Mi
|
|
|
|
|
limits:
|
|
|
|
|
cpu: 500m
|
|
|
|
|
memory: 256Mi
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /health
|
|
|
|
|
port: 8080
|
|
|
|
|
initialDelaySeconds: 2
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /health
|
|
|
|
|
port: 8080
|
|
|
|
|
initialDelaySeconds: 2
|
|
|
|
|
periodSeconds: 5
|