Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update Kubernetes configs for playwright-service, api, and worker

Jakob Stadlhuber497aa5d25ef0
diff --git a/examples/kubernetes/cluster-install/README.md b/examples/kubernetes/cluster-install/README.md
index f874d8293..2ae39893f 100644
--- a/examples/kubernetes/cluster-install/README.md
+++ b/examples/kubernetes/cluster-install/README.md
@@ -4,12 +4,12 @@
2. Build Docker images, and host it in your Docker Registry (replace the target registry with your own)
1. API (which is also used as a worker image)
1. ```bash
- docker build -t ghcr.io/winkk-dev/firecrawl:latest ../../apps/api
+ docker build --no-cache -t ghcr.io/winkk-dev/firecrawl:latest ../../apps/api
docker push ghcr.io/winkk-dev/firecrawl:latest
```
2. Playwright
1. ```bash
- docker build -t ghcr.io/winkk-dev/firecrawl-playwright:latest ../../apps/playwright-service
+ docker build --no-cache -t ghcr.io/winkk-dev/firecrawl-playwright:latest ../../apps/playwright-service
docker push ghcr.io/winkk-dev/firecrawl-playwright:latest
```
3. Replace the image in [worker.yaml](worker.yaml), [api.yaml](api.yaml) and [playwright-service.yaml](playwright-service.yaml)
diff --git a/examples/kubernetes/cluster-install/api.yaml b/examples/kubernetes/cluster-install/api.yaml
index cdc69c3d3..81e61839b 100644
--- a/examples/kubernetes/cluster-install/api.yaml
+++ b/examples/kubernetes/cluster-install/api.yaml
@@ -17,14 +17,15 @@ spec:
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
+ #- secretRef:
+ # name: firecrawl-secret
---
apiVersion: v1
kind: Service
diff --git a/examples/kubernetes/cluster-install/configmap.yaml b/examples/kubernetes/cluster-install/configmap.yaml
index b415d562f..32559de77 100644
--- a/examples/kubernetes/cluster-install/configmap.yaml
+++ b/examples/kubernetes/cluster-install/configmap.yaml
@@ -7,8 +7,6 @@ data:
PORT: "3002"
HOST: "0.0.0.0"
REDIS_URL: "redis://redis:6379"
- PLAYWRIGHT_MICROSERVICE_URL: "http://playwright-service:3000"
+ PLAYWRIGHT_MICROSERVICE_URL: "http://playwright-service:3000/html"
USE_DB_AUTHENTICATION: "false"
- SUPABASE_ANON_TOKEN: ""
- SUPABASE_URL: ""
- SUPABASE_SERVICE_TOKEN: ""
+ HDX_NODE_BETA_MODE: "1"
diff --git a/examples/kubernetes/cluster-install/playwright-service.yaml b/examples/kubernetes/cluster-install/playwright-service.yaml
index ce7942532..e916d9148 100644
--- a/examples/kubernetes/cluster-install/playwright-service.yaml
+++ b/examples/kubernetes/cluster-install/playwright-service.yaml
@@ -1,3 +1,10 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: playwright-service-config
+data:
+ PORT: "3000"
+---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -17,11 +24,12 @@ spec:
containers:
- name: playwright-service
image: ghcr.io/winkk-dev/firecrawl-playwright:latest
+ imagePullPolicy: Always
ports:
- containerPort: 3000
envFrom:
- configMapRef:
- name: firecrawl-config
+ name: playwright-service-config
---
apiVersion: v1
kind: Service
diff --git a/examples/kubernetes/cluster-install/worker.yaml b/examples/kubernetes/cluster-install/worker.yaml
index 2b3b2e791..545beaa39 100644
--- a/examples/kubernetes/cluster-install/worker.yaml
+++ b/examples/kubernetes/cluster-install/worker.yaml
@@ -17,8 +17,9 @@ spec:
containers:
- name: worker
image: ghcr.io/winkk-dev/firecrawl:latest
+ imagePullPolicy: Always
envFrom:
- configMapRef:
name: firecrawl-config
- - secretRef:
- name: firecrawl-secret
+ #- secretRef:
+ # name: firecrawl-secret