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.
Feb 24, 2022 (20 months ago)
Thankful for guidance 🙂
Kishore Nallan08:44 AM
Kishore Nallan08:49 AM
--api-keyCLI 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.
So if I understand correctly, I would start the instance in Cloud Run and set the key there, and thereafter run the Firebase plugin?
Kishore Nallan08:55 AM
It contains snippets that show how the server is started with a master API key.
Kishore Nallan09:03 AM
Kishore Nallan09:04 AM
Kishore Nallan09:05 AM
export 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
Kishore Nallan09:08 AM
Kishore Nallan09:11 AM
Thanks in advance, and sorry for basic questions. I'm somewhat of a newbie.
Kishore Nallan01:07 PM
Feb 25, 2022 (20 months ago)
It's a continuous learning process 🙂
Kishore Nallan01:10 PM
Jun 07, 2022 (17 months ago)
Indexed 2779 threads (79% resolved)
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.