This repository was archived by the owner on Jun 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathindexed-search.StatefulSet.yaml
More file actions
106 lines (106 loc) · 3.32 KB
/
indexed-search.StatefulSet.yaml
File metadata and controls
106 lines (106 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
description: Backend for indexed text search operations.
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: indexed-search
name: indexed-search
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: indexed-search
serviceName: indexed-search
template:
metadata:
labels:
app: indexed-search
deploy: sourcegraph
spec:
containers:
- name: zoekt-webserver
env:
# OTEL_AGENT_HOST must be defined before OTEL_EXPORTER_OTLP_ENDPOINT to substitute the node IP on which the DaemonSet pod instance runs in the latter variable
- name: OTEL_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://$(OTEL_AGENT_HOST):4317
- name: OPENTELEMETRY_DISABLED
value: "false"
image: us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal/indexed-searcher:6.2.1106@sha256:e8fbd1e2db91153637466da118e393eff23668125feb25599f317ae3008cfec4
terminationMessagePolicy: FallbackToLogsOnError
ports:
- containerPort: 6070
name: http
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: http
scheme: HTTP
periodSeconds: 5
timeoutSeconds: 5
resources:
limits:
cpu: "2"
memory: 4G
requests:
cpu: 500m
memory: 2G
volumeMounts:
- mountPath: /data
name: data
- name: zoekt-indexserver
env:
# OTEL_AGENT_HOST must be defined before OTEL_EXPORTER_OTLP_ENDPOINT to substitute the node IP on which the DaemonSet pod instance runs in the latter variable
- name: OTEL_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://$(OTEL_AGENT_HOST):4317
- name: OPENTELEMETRY_DISABLED
value: "false"
image: us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal/search-indexer:6.2.1106@sha256:678fdab59feaec5635815486e061433289ef5aef0e2a491050c2bb3ef19299d3
terminationMessagePolicy: FallbackToLogsOnError
ports:
- containerPort: 6072
name: index-http
resources:
# zoekt-indexserver is CPU bound. The more CPU you allocate to it, the
# lower lag between a new commit and it being indexed for search.
limits:
cpu: "8"
memory: 8G
requests:
cpu: "4"
memory: 4G
volumeMounts:
- mountPath: /data
name: data
securityContext:
runAsUser: 0
volumes:
- name: data
updateStrategy:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
deploy: sourcegraph
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
# The size of disk to used for search indexes.
# This should typically be gitserver disk size multipled by the number of gitserver shards.
storage: 200Gi
storageClassName: sourcegraph