mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 19:58:08 +08:00
d68f349109
Refactored container configurations in worker, api, and playwright-service YAMLs to streamline syntax and add missing fields. Added a service definition for the worker component and included a new environment variable in the configmap for rate-limiting. These changes enhance configuration clarity and ensure proper resource definitions.
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
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
|
|
imagePullPolicy: Always
|
|
args: [ "pnpm", "run", "start:production" ]
|
|
ports:
|
|
- containerPort: 3002
|
|
envFrom:
|
|
- configMapRef:
|
|
name: firecrawl-config
|
|
#- secretRef:
|
|
# name: firecrawl-secret
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /v0/health/liveness
|
|
port: 3002
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /v0/health/readiness
|
|
port: 3002
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: api
|
|
spec:
|
|
selector:
|
|
app: api
|
|
ports:
|
|
- protocol: TCP
|
|
port: 3002
|
|
targetPort: 3002
|