Skip to content

Commit ad98e4e

Browse files
committed
Fixing port names for Istio service mesh auto config
1 parent c96a004 commit ad98e4e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ metadata:
1515
name: sourcegraph-frontend-internal
1616
spec:
1717
ports:
18-
- name: http-internal
18+
- name: grpc-internal
1919
port: 80
20-
targetPort: http-internal
20+
targetPort: grpc-internal
2121
selector:
2222
{{- include "sourcegraph.selectorLabels" . | nindent 4 }}
2323
app: sourcegraph-frontend

charts/sourcegraph/templates/frontend/sourcegraph-frontend.Deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ spec:
122122
- containerPort: 3080
123123
name: http
124124
- containerPort: 3090
125-
name: http-internal
125+
name: grpc-internal
126126
- containerPort: 6060
127127
name: debug
128128
{{- if not .Values.sourcegraph.localDevMode }}

charts/sourcegraph/templates/gitserver/gitserver.Service.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ metadata:
2121
spec:
2222
clusterIP: None
2323
ports:
24-
- name: unused
25-
port: 10811
26-
targetPort: 10811
24+
- name: grpc
25+
port: 3178
26+
targetPort: 3178
2727
selector:
2828
{{- include "sourcegraph.selectorLabels" . | nindent 4 }}
2929
app: gitserver

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ spec:
6161
# pod because of a failed liveness probe, we give it 2 minutes to start up.
6262
startupProbe:
6363
tcpSocket:
64-
port: rpc
64+
port: grpc
6565
failureThreshold: 120
6666
periodSeconds: 1
6767
livenessProbe:
6868
initialDelaySeconds: 5
6969
tcpSocket:
70-
port: rpc
70+
port: grpc
7171
timeoutSeconds: 5
7272
ports:
7373
- containerPort: 3178
74-
name: rpc
74+
name: grpc
7575
{{- if not .Values.sourcegraph.localDevMode }}
7676
resources:
7777
{{- toYaml .Values.gitserver.resources | nindent 10 }}

0 commit comments

Comments
 (0)