Some checks failed
Build and Deploy GooSeek / build-and-deploy (push) Has been cancelled
- Ingress: route /api/* on gooseek.ru to api-gateway (was going to webui) - api-gateway: move /health and /ready before JWT/rate-limit middleware to prevent liveness probe 429 failures causing CrashLoopBackOff - Readiness probes: fix agent-svc, search-svc, scraper-svc to use /health (they don't implement /ready endpoint, causing permanent 0/1 status) - ConfigMap: add missing CHAT_SVC_URL and API_GATEWAY_URL - deploy.sh: also clean up misplaced NetworkPolicy from gooseek namespace - webui: add Next.js rewrites to proxy /api/* to api-gateway Made-with: Cursor
67 lines
1.3 KiB
YAML
67 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: scraper-svc
|
|
namespace: gooseek
|
|
labels:
|
|
app: scraper-svc
|
|
app.kubernetes.io/name: scraper-svc
|
|
app.kubernetes.io/part-of: gooseek
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: scraper-svc
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: scraper-svc
|
|
spec:
|
|
containers:
|
|
- name: scraper-svc
|
|
image: gooseek/backend:latest
|
|
env:
|
|
- name: SERVICE
|
|
value: "scraper-svc"
|
|
- name: PORT
|
|
value: "3021"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: gooseek-config
|
|
ports:
|
|
- containerPort: 3021
|
|
name: http
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3021
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 15
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3021
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 512Mi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: scraper-svc
|
|
namespace: gooseek
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: scraper-svc
|
|
ports:
|
|
- port: 3021
|
|
targetPort: 3021
|
|
name: http
|