-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathsearcher.Deployment.yaml
65 lines (65 loc) · 1.53 KB
/
searcher.Deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: Backend for text search operations.
labels:
deploy: sourcegraph
name: searcher
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: searcher
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: searcher
spec:
containers:
- env:
- name: SEARCHER_CACHE_SIZE_MB
value: "100000"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CACHE_DIR
value: /mnt/cache/$(POD_NAME)
image: index.docker.io/sourcegraph/searcher:3.11.0-rc.1@sha256:d79dfc7bb53a43d9ee249e8fd4d7236436387a0bb7e86203c363b280ac391b2f
terminationMessagePolicy: FallbackToLogsOnError
name: searcher
ports:
- containerPort: 3181
name: http
- containerPort: 6060
name: debug
readinessProbe:
failureThreshold: 1
httpGet:
path: /healthz
port: http
scheme: HTTP
periodSeconds: 1
resources:
limits:
cpu: "2"
memory: 2G
requests:
cpu: 500m
memory: 500M
volumeMounts:
- mountPath: /mnt/cache
name: cache-ssd
securityContext:
runAsUser: 0
volumes:
- emptyDir: {}
name: cache-ssd