gitlab-zoekt
by GitLab
A Helm chart for deploying Zoekt as a search engine for GitLab
About this chart
GitLab Zoekt Helm Chart
For deploying Zoekt as a code search engine to support GitLab exact code search.
Usage
Using Makefile
# See all available commands
make help
# Install the chart
make install
# Install with custom values
make install ARGS="-f custom-values.yaml"
# Upgrade the chart
make upgrade
# Uninstall the chart
make uninstall
# Watch for changes and run integration tests
make watch-integration
# Watch for changes and run all specs
make watch-rspec
Using Helm directly
# Install the chart
helm install gitlab-zoekt .
# Install with custom values
helm install gitlab-zoekt . -f custom-values.yaml
Enable Lefthook
lefthook install
Architecture
The GitLab Zoekt Helm chart deploys a code search engine with a modern, scalable architecture.
Key Components
-
StatefulSet Pod containing:
- Indexer: Creates and maintains search indices from Git repositories
- Webserver: Serves search queries against the indexed data
- Internal Gateway: Routes requests between indexer and webserver within the pod
-
External Gateway (Deployment):
- Routes external traffic to the StatefulSet pods
- Provides direct node addressing via
/nodes/[node-name]/[path] - Enables federated search capabilities
The architecture features:
- Federated search with gRPC streaming for efficient multi-node searches
- Self-registering node system for easy scaling
- Configurable security with TLS and JWT authentication
Read the detailed architecture documentation
Detailed documentation
- Architecture Overview
- How to enable LoadBalancer
- Stable Branches and Releases
Stable branches
Stable branches are named <gitlab-major>-<gitlab-minor>-stable and are protected. Do not use the -stable suffix for any other branches. See doc/stable-branches.md for the full process.
Decision Making
Changes to this repository are first reviewed using the merge request workflow then merged by project maintainers.
Maintainers
Project maintainers can be found on the GitLab projects page, or located using the review workload dashboard.
Maintainers are responsible for merging changes within their domain, and having an understanding of the whole project and how changes may impact areas outside their expertise.
Reviewers can assign to any maintainer and the maintainer will engage the appropriate domain expert if it does not fall within their own.
In order to continue to expand their expertise maintainers are empowered to merge changes outside their domain but that they are highly confident in unless:
- The change cannot be reverted later
- The change has an established process that needs to be followed (JiHu review, security, legal/license changes)
- The change clearly requires an architectural decision
When urgent changes are required, maintainers should have a bias-for action, and can make decisions as long as the decisions are later reversible and compliant with known project process requirements.
Dependency Maintainers
A dependency maintainer has the same responsibilities as a regular maintainer, but the ability to merge is tightly scoped to changes related to dependency versioning only for a specific domain. If any change aside from a dependency versioning is present in the merge request, a regular maintainer is required to perform the maintainer review.
All changes need to result in a working chart, and the impact of the change in dependency versions needs to be fully understood by the dependency maintainer. Individuals that are already chart reviewers are good candidates to become dependency maintainers.
| Username |
|---|
| @terrichu |
| @johnmason |
| @arturoherrero |
| @maddievn |
| @sdungarwal |
Deploy gitlab-zoekt with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gitlab-zoekt on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgitlab-zoekt is pinned at v4.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply