Playwright service doesn't expose a health endpoint at /, causing HTTP probes to fail with 404. Switch to tcpSocket probes which simply verify the port is listening. Service is already confirmed running on port 3000.
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: playwright-service
|
|
namespace: firecrawl
|
|
labels:
|
|
app.kubernetes.io/name: firecrawl
|
|
app.kubernetes.io/component: browser
|
|
app.kubernetes.io/part-of: firecrawl
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: playwright-service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: playwright-service
|
|
app.kubernetes.io/name: firecrawl
|
|
app.kubernetes.io/component: browser
|
|
spec:
|
|
containers:
|
|
- name: playwright
|
|
image: the-seas.local.mk-labs.cloud/library/firecrawl-playwright:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 3000
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: playwright-service-config
|
|
resources:
|
|
requests:
|
|
cpu: 1000m
|
|
memory: 2Gi
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 4Gi
|
|
volumeMounts:
|
|
- name: tmpfs
|
|
mountPath: /tmp
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 3000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 3000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
volumes:
|
|
- name: tmpfs
|
|
emptyDir:
|
|
medium: Memory
|
|
sizeLimit: 1Gi
|