Deploying Typesense in GCP Cloud Run
TLDR Christian had difficulties obtaining an API key for deploying Typesense in GCP Cloud Run. Kishore Nallan guided on API key creation when setting up Typesense server and suggested checking the Typesense self-hosting guide. Christian decided to run the Typesense in Kubernetes instead of Cloud Run. Nasim thanked Christian for sharing findings.
1
Feb 24, 2022 (20 months ago)
Christian
08:19 AMThankful for guidance ๐
Kishore Nallan
08:44 AMKishore Nallan
08:49 AM--api-key
CLI argument (or equivalent config file or environment variable). You can then use this master key to create additional keys with narrower permissions for searching or exposing to the front-end.Christian
08:54 AMSo if I understand correctly, I would start the instance in Cloud Run and set the key there, and thereafter run the Firebase plugin?
Kishore Nallan
08:55 AMhttps://typesense.org/docs/guide/install-typesense.html#option-2-local-machine-self-hosting
It contains snippets that show how the server is started with a master API key.
Christian
08:59 AMChristian
09:03 AMKishore Nallan
09:03 AMKishore Nallan
09:04 AMKishore Nallan
09:05 AMexport TYPESENSE_API_KEY=xyz
mkdir /tmp/typesense-data
docker run -p 8108:8108 -v/tmp/typesense-data:/data typesense/typesense:0.22.2 \
--data-dir /data --api-key=$TYPESENSE_API_KEY --enable-cors
Christian
09:07 AMKishore Nallan
09:08 AMChristian
09:09 AMKishore Nallan
09:11 AMChristian
01:05 PMThanks in advance, and sorry for basic questions. I'm somewhat of a newbie.
Kishore Nallan
01:07 PMChristian
01:29 PMFeb 25, 2022 (20 months ago)
Christian
12:28 PMIt's a continuous learning process ๐
1
Kishore Nallan
01:10 PMJun 07, 2022 (17 months ago)
Nasim
08:13 AMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Deploying Typesense on Google Cloud Run
Nicolas attempted to deploy Typesense on Google Cloud Run but encountered problems. CaptainCodeman advised that Cloud Run is unsuitable for Typesense and suggested using a container optimized VM.
Running Typesense in Docker Container on Windows 10
Christian had issues running Typesense in Docker due to an unrecognized data directory. Jason suggested a solution to fix the file path issue, which Christian successfully implemented using Windows Powershell.
Debugging Typesense API Key Error
James is getting an error related to the `x-typesense-api-key` header in their Typesense project. Harrison suggests passing the API key in the HTTP header, and Jason advises checking the key via curl and possibly closing a duplicate Typesense server.
Issues deploying Typesense to AWS EKS
Pavan had issues when deploying Typesense to AWS EKS. Kishore Nallan suggested deployment to plain EC2 instances and provided the API key information. Eventually, Pavan resolved the issue with Helm.
Deploying Typesense on Google Cloud Platform (GCP)
Stephane asked for advice on deploying Typesense on GCP and encountered an issue with persistent storage. Jason suggested using Linux VMs on GCP instead, which Stephane thanked them for and found a solution in the documentation.