From b54c05b95698071e83db7fd6fc9a8a1eb94baae2 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Mon, 16 Mar 2026 20:25:30 +0100 Subject: [PATCH] add crawl4ai-proxy for openwebui --- apps/crawl4ai-proxy/deployment.yaml | 48 ++++++++++++++++++++++++++ apps/crawl4ai-proxy/kustomization.yaml | 5 +++ apps/crawl4ai-proxy/service.yaml | 14 ++++++++ apps/kustomization.yaml | 1 + 4 files changed, 68 insertions(+) create mode 100644 apps/crawl4ai-proxy/deployment.yaml create mode 100644 apps/crawl4ai-proxy/kustomization.yaml create mode 100644 apps/crawl4ai-proxy/service.yaml diff --git a/apps/crawl4ai-proxy/deployment.yaml b/apps/crawl4ai-proxy/deployment.yaml new file mode 100644 index 0000000..52a2a77 --- /dev/null +++ b/apps/crawl4ai-proxy/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: crawl4ai-proxy + namespace: crawl4ai +spec: + replicas: 1 + selector: + matchLabels: + app: crawl4ai-proxy + template: + metadata: + labels: + app: crawl4ai-proxy + spec: + containers: + - name: crawl4ai-proxy + image: ghcr.io/lennyerik/crawl4ai-proxy:latest + imagePullPolicy: IfNotPresent + env: + - name: LISTEN_PORT + value: "8000" + - name: CRAWL4AI_ENDPOINT + value: http://crawl4ai.crawl4ai.svc.cluster.local:11235/crawl + ports: + - name: http + containerPort: 8000 + readinessProbe: + tcpSocket: + port: http + initialDelaySeconds: 3 + periodSeconds: 10 + timeoutSeconds: 2 + failureThreshold: 6 + livenessProbe: + tcpSocket: + port: http + initialDelaySeconds: 10 + periodSeconds: 15 + timeoutSeconds: 2 + failureThreshold: 6 + resources: + requests: + cpu: 25m + memory: 32Mi + limits: + cpu: 200m + memory: 128Mi diff --git a/apps/crawl4ai-proxy/kustomization.yaml b/apps/crawl4ai-proxy/kustomization.yaml new file mode 100644 index 0000000..a33121c --- /dev/null +++ b/apps/crawl4ai-proxy/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - deployment.yaml + - service.yaml diff --git a/apps/crawl4ai-proxy/service.yaml b/apps/crawl4ai-proxy/service.yaml new file mode 100644 index 0000000..866f32b --- /dev/null +++ b/apps/crawl4ai-proxy/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: crawl4ai-proxy + namespace: crawl4ai +spec: + type: ClusterIP + selector: + app: crawl4ai-proxy + ports: + - name: http + port: 8000 + targetPort: 8000 + protocol: TCP diff --git a/apps/kustomization.yaml b/apps/kustomization.yaml index c8a47cc..30760f5 100644 --- a/apps/kustomization.yaml +++ b/apps/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - crawl4ai + - crawl4ai-proxy - authentik - gitea - renovate