Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
feat: Update redis deployment to run redis with password if REDIS_PASSWORD is configured
y5n1ea9131e63d8
diff --git a/examples/kubernetes/cluster-install/README.md b/examples/kubernetes/cluster-install/README.mdindex 736ae0385..78bb6133a 100644--- a/examples/kubernetes/cluster-install/README.md+++ b/examples/kubernetes/cluster-install/README.md@@ -1,6 +1,15 @@# Install Firecrawl on a Kubernetes Cluster (Simple Version)# Before installing1. Set [secret.yaml](secret.yaml) and [configmap.yaml](configmap.yaml) and do not check in secrets+ Here's the modified markdown with the statement you requested:+ - **Note**: If `REDIS_PASSWORD` is configured in the secret, please modify the ConfigMap to reflect the following format for `REDIS_URL` and `REDIS_RATE_LIMIT_URL`:+ ```yaml+ REDIS_URL: "redis://:password@host:port"+ REDIS_RATE_LIMIT_URL: "redis://:password@host:port"+ ```+ Replace `password`, `host`, and `port` with the appropriate values.++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. ```bashdiff --git a/examples/kubernetes/cluster-install/redis.yaml b/examples/kubernetes/cluster-install/redis.yamlindex 774d37123..855567f1d 100644--- a/examples/kubernetes/cluster-install/redis.yaml+++ b/examples/kubernetes/cluster-install/redis.yaml@@ -15,7 +15,22 @@ spec:containers:- name: redisimage: redis:alpine- args: ["redis-server", "--bind", "0.0.0.0"]+ command: [ "/bin/sh", "-c" ] # Run a shell script as entrypoint+ args:+ - |+ if [ -n "$REDIS_PASSWORD" ]; then+ echo "Starting Redis with authentication"+ exec redis-server --bind 0.0.0.0 --requirepass "$REDIS_PASSWORD"+ else+ echo "Starting Redis without authentication"+ exec redis-server --bind 0.0.0.0+ fi+ env:+ - name: REDIS_PASSWORD+ valueFrom:+ secretKeyRef:+ name: firecrawl-secret+ key: REDIS_PASSWORD---apiVersion: v1kind: Servicediff --git a/examples/kubernetes/cluster-install/secret.yaml b/examples/kubernetes/cluster-install/secret.yamlindex 6d8eed3b8..3cbab7a76 100644--- a/examples/kubernetes/cluster-install/secret.yaml+++ b/examples/kubernetes/cluster-install/secret.yaml@@ -17,3 +17,4 @@ data:STRIPE_PRICE_ID_SCALE: ""HYPERDX_API_KEY: ""FIRE_ENGINE_BETA_URL: ""+ REDIS_PASSWORD: ""