Skip to content

Commit 951ce80

Browse files
committed
add gitserver startup probe
1 parent 93ec7d9 commit 951ce80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

charts/sourcegraph/templates/gitserver/gitserver.StatefulSet.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ spec:
5656
{{- end }}
5757
{{- include "sourcegraph.openTelemetryEnv" . | nindent 8 }}
5858
terminationMessagePolicy: FallbackToLogsOnError
59+
# Temporary: when migrating from repo names to repo IDs on disk,
60+
# gitserver can take a little while to start up. To avoid killing the
61+
# pod because of a failed liveness probe, we give it 2 minutes to start up.
62+
startupProbe:
63+
tcpSocket:
64+
port: rpc
65+
failureThreshold: 120
66+
periodSeconds: 1
5967
livenessProbe:
6068
initialDelaySeconds: 5
6169
tcpSocket:

0 commit comments

Comments
 (0)