Local Kubernetes Setup
Learn how to self-host Trieve on local Kubernetes
Local Kuberntes
We reccomend using kind
Clone the Trieve repository
Create a kind cluster with a local image registry
Install Trieve Dependencies
Trieve depends on the following:
- Keycloak (or some other oidc compliant Auth Provider)
- Postgres
- Redis
- Clickhouse
- Qdrant
To install these dependencies, run the following commands:
Verify all Dependencies are installed.
It may take a while for all resources to be available, kind is typically a bit slower than a production cluster.
To verify the installation is correct run kubectl get all
and verify the output matches that below.
Easiest way to do this is run
Once your output matches the above, you can move on to the next step.
Install the Trieve helm chart
The helm/values.local.yaml
file is preconfigured to work with the dependencies as installed by test/
.
Edit any values if needed
Verify the installation
After installing, kubectl get deployments
should look like this.
- Edit
/etc/hosts
and add the following entries here.
and port-forward keycloak
Navigate to http://dashboard.localtrieve.com, and make an acocount. (The email does not need to be real).
You should be use everything locally with a local CPU embedding server.