- Changed worker deployment probes from HTTP to TCP (port 3005) * Worker liveness endpoint doesn't serve HTTP at '/' path * TCP socket check more appropriate for background worker * Resolves pod restart loop and readiness failures - Corrected HTTPRoute gateway reference * Changed from 'gateway' in 'default' namespace * To 'fastpass-gateway' in 'gateway' namespace * HTTPRoute now properly accepted by gateway All 7 deployments Running and Ready. System operational.
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: firecrawl-api-worker
|
|
namespace: firecrawl
|
|
labels:
|
|
app.kubernetes.io/name: firecrawl
|
|
app.kubernetes.io/component: worker
|
|
app.kubernetes.io/part-of: firecrawl
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: firecrawl-api-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: firecrawl-api-worker
|
|
app.kubernetes.io/name: firecrawl
|
|
app.kubernetes.io/component: worker
|
|
spec:
|
|
containers:
|
|
- name: worker
|
|
image: the-seas.local.mk-labs.cloud/library/firecrawl-api:latest
|
|
imagePullPolicy: Always
|
|
command: ["node"]
|
|
args: ["dist/src/services/queue-worker.js"]
|
|
ports:
|
|
- name: http
|
|
containerPort: 3005
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: firecrawl-config
|
|
- secretRef:
|
|
name: firecrawl-secrets
|
|
env:
|
|
- name: FLY_PROCESS_GROUP
|
|
value: "worker"
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 3Gi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 4Gi
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 3005
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 3005
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|