From 31efc317eebef8a933d84d9bf1d0f410496db4ba Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Fri, 4 Sep 2026 12:45:53 +0000 Subject: [PATCH] feat/gitserver: add HTTP clone port and health probes Prepare Kubernetes deployments for the dedicated Gitserver HTTP clone listener introduced in sourcegraph/sourcegraph#15346. Declare the clone and debug ports, use the debug server readiness contract for startup and readiness, and use its health endpoint for liveness. Amp-Thread-ID: https://ampcode.com/threads/T-01a06a40-0d1b-77ba-80e6-de55136092f1 Co-authored-by: Amp --- .../gitserver/gitserver.StatefulSet.yaml | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml b/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml index f36d5238..6d5c9ebd 100644 --- a/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml +++ b/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml @@ -41,19 +41,36 @@ spec: # gitserver can take a little while to start up. To avoid killing the # pod because of a failed liveness probe, we give it 2 minutes to start up. startupProbe: - tcpSocket: - port: rpc + httpGet: + path: /ready + port: http-debug + scheme: HTTP failureThreshold: 120 periodSeconds: 1 livenessProbe: initialDelaySeconds: 5 - tcpSocket: - port: rpc + httpGet: + path: /healthz + port: http-debug + scheme: HTTP + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /ready + port: http-debug + scheme: HTTP + periodSeconds: 5 timeoutSeconds: 5 ports: - containerPort: 3178 protocol: TCP name: rpc + - containerPort: 3179 + protocol: TCP + name: http-clone + - containerPort: 6060 + protocol: TCP + name: http-debug resources: limits: cpu: "4"