Skip to content

Commit f4b1de0

Browse files
committed
add gitserver startup probe
1 parent 4b92ae7 commit f4b1de0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

base/sourcegraph/gitserver/gitserver.StatefulSet.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,22 @@ spec:
3737
value: http://$(OTEL_AGENT_HOST):4317
3838
image: index.docker.io/sourcegraph/gitserver:6.0.0@sha256:aec9bf6993c243a283109104cd7c44be3c85680b77e3e8be0c5fba8f01a3bd35
3939
terminationMessagePolicy: FallbackToLogsOnError
40+
# Temporary: when migrating from repo names to repo IDs on disk,
41+
# gitserver can take a little while to start up. To avoid killing the
42+
# pod because of a failed liveness probe, we give it 60 seconds to start up.
43+
startupProbe:
44+
tcpSocket:
45+
port: rpc
46+
failureThreshold: 60
47+
periodSeconds: 1
4048
livenessProbe:
4149
initialDelaySeconds: 5
4250
tcpSocket:
4351
port: rpc
4452
timeoutSeconds: 5
4553
ports:
4654
- containerPort: 3178
47-
protocol: TCP
55+
pkkkkrotocol: TCP
4856
name: rpc
4957
resources:
5058
limits:

0 commit comments

Comments
 (0)