Skip to content

Commit 314ea86

Browse files
committed
search: document INDEX_SEARCH_INDEXERS
1 parent 0dc4c41 commit 314ea86

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

docs/admin/deploy/docker-compose/configuration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,15 @@ services:
135135
environment:
136136
- 'SRC_GIT_SERVERS=2'
137137
- 'INDEXED_SEARCH_SERVERS=2'
138+
- 'INDEXED_SEARCH_INDEXERS=2'
138139
- 'SEARCHER_URL=1'
139140
- 'SYMBOLS_URL=1'
140141
141142
sourcegraph-frontend-internal:
142143
environment:
143144
- 'SRC_GIT_SERVERS=2'
144145
- 'INDEXED_SEARCH_SERVERS=2'
146+
- 'INDEXED_SEARCH_INDEXERS=2'
145147
- 'SEARCHER_URL=1'
146148
- 'SYMBOLS_URL=1'
147149
```

docs/admin/deploy/kubernetes/configure.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ RBAC must be enabled in your cluster for the frontend to communicate with other
8282

8383
This will allow the frontend service to discover endpoints for each service replica and communicate with them through the Kubernetes API. Note that this component should only be added if RBAC is enabled in your cluster.
8484

85+
> **If you are not using Kubernetes service discovery (for example, if you are running without RBAC or outside Kubernetes), you must manually configure service endpoints for the frontend.** See [Running Sourcegraph Without Kubernetes Service Discovery](/admin/deploy/without_service_discovery) for instructions.
86+
8587
---
8688

8789
## Monitoring stack
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Running Sourcegraph Without Kubernetes Service Discovery
2+
3+
<Callout type="warning">Not settting these environment variables might prevent pods from starting when running without service discovery.</Callout>
4+
5+
If you are deploying Sourcegraph in an environment **without Kubernetes service discovery** (for example, using Docker Compose or single-container Docker), you must manually configure the frontend service to know about the other service replicas. This is typically required when you are not using RBAC or the `service-discovery` component in Kubernetes, or when running outside Kubernetes entirely.
6+
7+
## Required Environment Variables
8+
9+
- INDEXED_SEARCH_INDEXER
10+
- INDEXED_SEARCH_SERVERS
11+
- SEARCHER_URL
12+
- SRC_GIT_SERVERS
13+
- SYMBOLS_URL
14+
15+
For detailed instructions on how to set these environment variables in a Docker Compose deployment, see the [Docker Compose configuration guide](/admin/deploy/docker-compose/configuration#set-environment-variables).

0 commit comments

Comments
 (0)