forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexed-search.StatefulSet.yaml
84 lines (84 loc) · 2.25 KB
/
indexed-search.StatefulSet.yaml
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
description: Backend for indexed text search operations.
labels:
deploy: sourcegraph
name: indexed-search
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: indexed-search
serviceName: indexed-search
template:
metadata:
labels:
app: indexed-search
spec:
containers:
- env:
image: index.docker.io/sourcegraph/indexed-searcher:3.15.1@sha256:d48de388d28899fd0c3ad0d6f84d466b3a1f533f6b967a713918d438ab8bc63c
terminationMessagePolicy: FallbackToLogsOnError
name: zoekt-webserver
ports:
- containerPort: 6070
name: http
readinessProbe:
failureThreshold: 1
httpGet:
path: /healthz
port: http
scheme: HTTP
periodSeconds: 1
resources:
limits:
cpu: "2"
memory: 4G
requests:
cpu: 500m
memory: 2G
volumeMounts:
- mountPath: /data
name: data
- env:
image: index.docker.io/sourcegraph/search-indexer:3.15.1@sha256:354ed968e62a7d011b647476a63116813aea23bdada0a2fc4322df5381acb6b3
terminationMessagePolicy: FallbackToLogsOnError
name: zoekt-indexserver
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