Helm chartv0.1.1App 2.11.621MITVerified publisher

Firecrawl (web scraping and crawling API for LLMs) on Kubernetes - API, queue workers and Playwright as separate Deployments with their own resources, probes and scaling, a token gate (self-hosted Firecrawl accepts any key), NuQ queue on bundled or managed PostgreSQL with the schema applied per release and WAL sized for the volume, KEDA scaling on queue depth, pinned image digests, non-root and read-only, NetworkPolicy, PodMonitor, alerts and a Grafana dashboard.

About this chart

firecrawl

Firecrawl (turns websites into clean Markdown and structured data for LLMs: scrape, crawl, map, search, extract) on Kubernetes, built for running it in production rather than as the upstream all-in-one container.

Upstream's self-hosted container starts the API and every worker as child processes of one harness, and its own Kubernetes example chart says it is a starting point, not a production setup. What this chart does differently (measured on 2.11.621 against the upstream Docker Compose stack and the upstream Kubernetes manifests):

UpstreamThis chart
Authenticationnone: with USE_DB_AUTHENTICATION=false every request is served, with any key or nonetoken gate in the API pods: only Authorization: Bearer <key> with a configured key, else 401 (keys generated, kept across upgrades)
Process layoutAPI, crawl worker, extract worker, 5 scrape workers, prefetch and reconciler in one 2.49 GiB container, scaled as a wholeone Deployment per component, each with its own requests, probes, heap cap and scaling
Scaling scrape workersfixed count per containerCPU HPA, or KEDA on the queue itself (nuq_queue_scrape_job_count{status="queued"})
API pod shutdown on Kubernetessleeps 60 s "for GCE load balancer drain" on every SIGTERM (IS_KUBERNETES)10 s preStop drain (api.drainSeconds), then closes in about 0.1 s
Playwright servicepnpm start (pnpm plus node), 248 MiB; the service only handles SIGINTnode directly, 140 MiB; SIGTERM is passed on as SIGINT so it closes its browser cleanly
Queue schema on managed PostgreSQLnuq.sql runs ALTER SYSTEM, which Cloud SQL and RDS refuse (permission denied to set parameter)applied by a Job on every release, ALTER SYSTEM skipped for external databases, pg_cron checked first with a clear message (tested as a non-superuser: all 36 pg_cron jobs created)
Queue database WALmin_wal_size 4GB, max_wal_size 16GB via ALTER SYSTEM, sized for upstream's cloud disks256 MB / 4 GB on the bundled StatefulSet (postgres.bundled.walSize), so a 20 GiB volume does not fill with WAL
Imagesthe Playwright and queue database images are published only as latestpinned to the multi-arch digests current with the release
RabbitMQ and FoundationDBboth started by the compose file (184 MiB), RabbitMQ required by the queue settingsnot needed: the queue waits on PostgreSQL LISTEN/NOTIFY; RabbitMQ only when the extract worker is on
SecurityAPI and workers as root, writable, every port reachablenon-root, read-only root filesystem, no capabilities; NetworkPolicy: gate open, API port only within the release, admin listener only from the monitoring namespace (tested)
Monitoringmetrics on internal ports, nothing scrapes themPodMonitor (worker metrics and queue depth), alerts (backlog, stalled queue, job failure ratio, component down), Grafana dashboard

Install

helm repo add oreonit https://oreondev.github.io/helm-charts
helm install firecrawl oreonit/firecrawl -n firecrawl --create-namespace -f firecrawl.yaml
kubectl -n firecrawl get secret firecrawl-gateway-keys -o jsonpath='{.data.api-keys}' | base64 -d

Everything is bundled by default (PostgreSQL with pg_cron, Redis), so an empty firecrawl.yaml works. A production setup on GKE with Cloud SQL and Memorystore:

postgres:
  mode: external
  user: firecrawl
  database: firecrawl
  existingSecret: firecrawl-db          # key "password"
  external:
    host: 10.40.0.3                     # Cloud SQL with cloudsql.enable_pg_cron=on, cron.database_name=firecrawl
redis:
  mode: external
  external:
    url: redis://10.40.0.12:6379

nuqWorker:
  autoscaling:
    keda:
      enabled: true                     # 2-10 workers, one per 20 queued jobs
playwright:
  autoscaling:
    enabled: true

ingress:
  enabled: true
  className: nginx
  annotations:
    nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
  hosts:
    - host: firecrawl.example.com
      paths: [{ path: /, pathType: Prefix }]
  tls:
    - secretName: firecrawl-tls
      hosts: [firecrawl.example.com]

metrics:
  podMonitor: { enabled: true }
  prometheusRule: { enabled: true }
  dashboard: { enabled: true }

Then point any Firecrawl SDK at it:

from firecrawl import Firecrawl
app = Firecrawl(api_key="fc-...", api_url="https://firecrawl.example.com")
print(app.scrape("https://example.com", formats=["markdown"]).markdown)

Components

ComponentRunsScale with
api + gatewayHTTP API and the token gateapi.replicaCount, api.autoscaling
workercrawl orchestrationworker.replicaCount
nuq-workerscrape jobs from the queuenuqWorker.replicaCount, .autoscaling (CPU) or .autoscaling.keda (queue depth)
nuq-prefetch-worker, nuq-reconciler-workerbacklog and concurrency housekeepingone each, by design
playwrightheadless Chromium for JavaScript pagesplaywright.replicaCount, .autoscaling, .maxConcurrentPages
extract-worker/extract with an LLMoff by default; needs rabbitmq.mode and an LLM key in secretEnv
postgres, redis, rabbitmqbundled stateor mode: external

A scrape job's throughput is set by nuqWorker replicas times firecrawl.numWorkersPerQueue (8), and JavaScript pages by playwright replicas times maxConcurrentPages (10).

PostgreSQL requirements (external)

The queue's cleanup, lock reaper and nightly reindexing run in pg_cron, so the database needs pg_cron in shared_preload_libraries and cron.database_name set to postgres.database: Cloud SQL flag cloudsql.enable_pg_cron, an RDS or Aurora parameter group, or an AlloyDB flag. The schema Job checks this before touching anything. Use a direct connection, not PgBouncer in transaction mode: the workers rely on LISTEN/NOTIFY.

Private models

/extract and the JSON format use an LLM. With secretEnv.OPENAI_API_KEY they use OpenAI; for a private model set firecrawl.env.OPENAI_BASE_URL to an OpenAI-compatible endpoint (vLLM, LiteLLM) and MODEL_NAME, or OLLAMA_BASE_URL.

Values

KeyDefault
image.tag / image.digestappVersionthe plain release tag (upstream also pushes -staging builds)
auth.enabled / .apiKeys / .existingSecreton / generated /token gate
firecrawl.numWorkersPerQueue / .crawlConcurrentRequests / .maxConcurrentJobs8 / 10 / 5
firecrawl.waitModelistenPostgreSQL LISTEN/NOTIFY instead of polling
firecrawl.trustProxyHops2 with the gateEXPRESS_TRUST_PROXY, for https URLs in responses
firecrawl.env / secretEnv / extraEnv / extraEnvFrommore variables (proxy, SearXNG, LLM)
api.*, worker.*, nuqWorker.*, nuqPrefetchWorker.*, nuqReconcilerWorker.*, extractWorker.*, playwright.*see values.yamlreplicas, resources (heap cap at 75% of the limit), autoscaling
postgres.mode / redis.mode / rabbitmq.modebundled / bundled / none
postgres.bundled.persistence.size / .walSize / .sharedBuffers20Gi / 256MB-4GB / 256MB
postgres.schema.enabledonqueue schema Job per release
ingress.*, httpRoute.*off
networkPolicy.enabled / .metricsNamespaceSelectoron / monitoring
metrics.enabled, .podMonitor, .prometheusRule, .dashboardon, off, off, off

Everything is validated by values.schema.json.

Credits and licence

Firecrawl is developed by the Firecrawl team under the AGPL-3.0. The chart deploys the upstream images unmodified; files/nuq.sql is the upstream queue schema from the release, unmodified and under its AGPL-3.0 licence.

The chart itself is MIT licensed and maintained by Oreon IT, a DevOps, SRE and cloud consultancy in London. If you run crawling, RAG pipelines or other AI workloads on Kubernetes and want them scaled, monitored and kept up to date, that is the day job.

Deploy firecrawl with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has firecrawl on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartfirecrawl is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply