firecrawl/examples/kubernetes/cluster-install
Jakob Stadlhuber f26bda2477 Update Docker build paths in Kubernetes setup README
Corrected relative paths for Docker build commands to ensure the appropriate directories are targeted. This fix is crucial for successful image builds and deployment consistency in the Kubernetes cluster setup.
2024-07-24 19:06:19 +02:00
..
README.md Update Docker build paths in Kubernetes setup README 2024-07-24 19:06:19 +02:00
api.yaml Add liveness and readiness probes to Kubernetes configs 2024-07-24 19:00:23 +02:00
configmap.yaml Update Kubernetes configs for playwright-service, api, and worker 2024-07-24 17:55:45 +02:00
playwright-service.yaml Add liveness and readiness probes to Kubernetes configs 2024-07-24 19:00:23 +02:00
redis.yaml Update examples section 2024-06-21 15:40:46 -04:00
secret.yaml Update examples section 2024-06-21 15:40:46 -04:00
worker.yaml Add liveness and readiness probes to Kubernetes configs 2024-07-24 19:00:23 +02:00

README.md

Install Firecrawl on a Kubernetes Cluster (Simple Version)

Before installing

  1. Set secret.yaml and configmap.yaml and do not check in secrets
  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. docker build --no-cache -t ghcr.io/winkk-dev/firecrawl:latest ../../../apps/api
        docker push ghcr.io/winkk-dev/firecrawl:latest
        
    2. Playwright
      1.    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, api.yaml and playwright-service.yaml

Install

kubectl apply -f configmap.yaml
kubectl apply -f secret.yaml
kubectl apply -f playwright-service.yaml
kubectl apply -f api.yaml
kubectl apply -f worker.yaml
kubectl apply -f redis.yaml

Port Forwarding for Testing

kubectl port-forward svc/api 3002:3002 -n dev

Delete Firecrawl

kubectl delete -f configmap.yaml
kubectl delete -f secret.yaml
kubectl delete -f playwright-service.yaml
kubectl delete -f api.yaml
kubectl delete -f worker.yaml
kubectl delete -f redis.yaml