63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: crawl4ai
|
|
namespace: crawl4ai
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: crawl4ai
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: crawl4ai
|
|
spec:
|
|
containers:
|
|
- name: crawl4ai
|
|
image: unclecode/crawl4ai:latest
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: CRAWL4AI_API_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: crawl4ai-secret
|
|
key: api_token
|
|
optional: false
|
|
- name: MAX_CONCURRENT_TASKS
|
|
value: "5"
|
|
ports:
|
|
- name: http
|
|
containerPort: 11235
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 6
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 15
|
|
timeoutSeconds: 3
|
|
failureThreshold: 6
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
limits:
|
|
cpu: "2"
|
|
memory: 4Gi
|
|
volumeMounts:
|
|
- name: dshm
|
|
mountPath: /dev/shm
|
|
volumes:
|
|
- name: dshm
|
|
emptyDir:
|
|
medium: Memory
|
|
sizeLimit: 1Gi
|