mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
078d4c8d41
Added new files for setting up Firecrawl on a Kubernetes Cluster. The files include Kubernetes manifests for deploying API, worker, playwright service, and Redis with associated ConfigMap and Secret associated resources. Also, updated the self-host documentation to include instructions for Kubernetes deployment.
40 lines
724 B
YAML
40 lines
724 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: api
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: docker-registry-secret
|
|
containers:
|
|
- name: api
|
|
image: ghcr.io/winkk-dev/firecrawl:latest
|
|
args: [ "pnpm", "run", "start:production" ]
|
|
ports:
|
|
- containerPort: 3002
|
|
envFrom:
|
|
- configMapRef:
|
|
name: firecrawl-config
|
|
- secretRef:
|
|
name: firecrawl-secret
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: api
|
|
spec:
|
|
selector:
|
|
app: api
|
|
ports:
|
|
- protocol: TCP
|
|
port: 3002
|
|
targetPort: 3002
|