Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit b3a6236

Browse files
committed
add gitserver startup probe
1 parent befd73a commit b3a6236

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

base/gitserver/gitserver.StatefulSet.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ spec:
3737
value: http://$(OTEL_AGENT_HOST):4317
3838
image: index.docker.io/sourcegraph/gitserver:5.11.0@sha256:f7c4725afd1b27448472edca8b863983d095777e416bcf290f0611927c3be587
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 2 minutes to start up.
43+
startupProbe:
44+
tcpSocket:
45+
port: rpc
46+
failureThreshold: 120
47+
periodSeconds: 1
4048
livenessProbe:
4149
initialDelaySeconds: 5
4250
tcpSocket:

0 commit comments

Comments
 (0)