From ad98e4ea947755fa4f64833a6e55e85f41865599 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc Date: Thu, 16 Oct 2025 16:57:21 -0600 Subject: [PATCH] Fixing port names for Istio service mesh auto config --- .../frontend/sourcegraph-frontend-internal.Service.yaml | 4 ++-- .../templates/frontend/sourcegraph-frontend.Deployment.yaml | 2 +- .../sourcegraph/templates/gitserver/gitserver.Service.yaml | 6 +++--- .../templates/gitserver/gitserver.StatefulSet.yaml | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml b/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml index 9da16a6b..a9368c19 100644 --- a/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml +++ b/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml @@ -15,9 +15,9 @@ metadata: name: sourcegraph-frontend-internal spec: ports: - - name: http-internal + - name: grpc-internal port: 80 - targetPort: http-internal + targetPort: grpc-internal selector: {{- include "sourcegraph.selectorLabels" . | nindent 4 }} app: sourcegraph-frontend diff --git a/charts/sourcegraph/templates/frontend/sourcegraph-frontend.Deployment.yaml b/charts/sourcegraph/templates/frontend/sourcegraph-frontend.Deployment.yaml index e2dad382..f6c564a7 100644 --- a/charts/sourcegraph/templates/frontend/sourcegraph-frontend.Deployment.yaml +++ b/charts/sourcegraph/templates/frontend/sourcegraph-frontend.Deployment.yaml @@ -122,7 +122,7 @@ spec: - containerPort: 3080 name: http - containerPort: 3090 - name: http-internal + name: grpc-internal - containerPort: 6060 name: debug {{- if not .Values.sourcegraph.localDevMode }} diff --git a/charts/sourcegraph/templates/gitserver/gitserver.Service.yaml b/charts/sourcegraph/templates/gitserver/gitserver.Service.yaml index f4997a96..209b715f 100644 --- a/charts/sourcegraph/templates/gitserver/gitserver.Service.yaml +++ b/charts/sourcegraph/templates/gitserver/gitserver.Service.yaml @@ -21,9 +21,9 @@ metadata: spec: clusterIP: None ports: - - name: unused - port: 10811 - targetPort: 10811 + - name: grpc + port: 3178 + targetPort: 3178 selector: {{- include "sourcegraph.selectorLabels" . | nindent 4 }} app: gitserver diff --git a/charts/sourcegraph/templates/gitserver/gitserver.StatefulSet.yaml b/charts/sourcegraph/templates/gitserver/gitserver.StatefulSet.yaml index cb856118..265b91d9 100644 --- a/charts/sourcegraph/templates/gitserver/gitserver.StatefulSet.yaml +++ b/charts/sourcegraph/templates/gitserver/gitserver.StatefulSet.yaml @@ -61,17 +61,17 @@ spec: # pod because of a failed liveness probe, we give it 2 minutes to start up. startupProbe: tcpSocket: - port: rpc + port: grpc failureThreshold: 120 periodSeconds: 1 livenessProbe: initialDelaySeconds: 5 tcpSocket: - port: rpc + port: grpc timeoutSeconds: 5 ports: - containerPort: 3178 - name: rpc + name: grpc {{- if not .Values.sourcegraph.localDevMode }} resources: {{- toYaml .Values.gitserver.resources | nindent 10 }}