- Created PersistentVolumeClaim for PostgreSQL (10GB, nfs-emporium) - Created ConfigMaps for API and Playwright service configuration - Created 7 Deployment manifests: * firecrawl-api (2 CPU, 4-6GB RAM) * firecrawl-api-worker (1 CPU, 3-4GB RAM) * firecrawl-api-nuq-worker (1 CPU, 3-4GB RAM) * firecrawl-playwright (2 CPU, 4GB RAM, 1GB tmpfs) * nuq-postgres (1 CPU, 2GB RAM, 10GB PVC) * redis (0.5 CPU, 1GB RAM) * rabbitmq (0.5 CPU, 1GB RAM) - Created 5 ClusterIP Services for inter-service communication - Created HTTPRoute for external access via Gateway API * Primary hostname: spaceship-earth.local.mk-labs.cloud * Alias: firecrawl.local.mk-labs.cloud - All manifests validated with kubectl dry-run=client Next steps (Day 4): Configure ExternalSecrets for 1Password integration Next steps (Day 5): Deploy to cluster and verify functionality Total resources: 8 CPU, 22GB RAM, 10GB storage
64 lines
1.6 KiB
YAML
64 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:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
volumes:
|
|
- name: tmpfs
|
|
emptyDir:
|
|
medium: Memory
|
|
sizeLimit: 1Gi
|