Skip to main content

Installing Trieve on GCP (GKE)

Things you need
  • Domain name
  • An allowance for at least 8vCPU for G and VT instances
  • helm cli
  • google cloud cli
  • kubectl
  • k9s (optional)

Clone the Trieve repository

Login to GCP

Provision Terraform

gcloud should be configured with your credentials chosen. Run the following commands to create the GKE cluster:

Login to the cluster

Set up your kubeconfig to point to the new cluster

Install Ingress nginx + Cert Manager

Ingress-nginx + Cert manager is how we will expose the trieve services to the internet. Feel free to use whatever ingress controller you are comfortable with.

Install Trieve

Download values.yaml file

For full configuration options, the values.yaml contains comments and examples. More information can be found in the Trieve Helm Chart repository.

Modify domain names for ingresses

values.yaml
Install the helm chart. Ensure it is installed twice
You will need to install the helm chart twice to ensure the crds are installed and ConfigMap’s are updated properly.

Verify the installation

After installing, kubectl get deployments should look like this.

Set Ingress

Get Ingress ip address

You will get an output like this:

Add A records

Add A records to your domain registrar with the IP address of the ingress.
Ensure you run helm upgrade -i -f helm/values.yaml trieve-local trieve/trieve after making changes. to apply them.

Post Installation

Setup Keycloak redirect urls

  • Navigate to auth.yourdomain.com
  • Log in using the default credentials:
    • Username: admin
    • Password: password
  • Switch the Realm from “master” to “trieve”
  • Navigate to Clients → trieve → Settings
  • Configure the Valid Redirect URIs and Valid Post Logout Redirect URIs (ensure it is https)
Keycloak Config

Verify Your Installation

Follow these steps to confirm your Trieve instance is working correctly:
1

Register Your First User

Navigate to dashboard.yourdomain.com in your browser. You’ll be prompted to register a new user account since this is a fresh installation.Empty Dashboard
2

Create a Dataset and Add Sample Data

Once logged in, create your first dataset and populate it with some example data. This will help you test the core functionality of your Trieve instance.
3

Verify Data Processing

Check the admin event log to ensure that chunks are being created successfully from your uploaded data. This confirms that the ingestion pipeline is working properly.Admin Event Log
4

Test Search Functionality

Navigate to search.yourdomain.com and perform a test search query using the data you just uploaded. This verifies that the search engine is functioning correctly.Search Page
5

Review Search Analytics

Return to dashboard.yourdomain.com and examine your search analytics to confirm that queries are being tracked and analyzed properly.Search Analytics

🚀 Congratulations! You’re all set!

You now have a fully functional Trieve instance running on GCP. Your self-hosted search infrastructure is ready to handle production workloads.

📚 Next Steps