Skip to content

Commit 7919847

Browse files
committed
This allows to configure the port name
Required to change the port name to 'http-metrics' (GL internal)
1 parent ca8994a commit 7919847

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

deploy/helm/fire/templates/service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ spec:
88
type: {{ .Values.fire.service.type }}
99
ports:
1010
- port: {{ .Values.fire.service.port }}
11-
targetPort: http
11+
targetPort: {{ .Values.fire.service.port_name }}
1212
protocol: TCP
13-
name: http
13+
name: {{ .Values.fire.service.port_name }}
1414
selector:
1515
{{- include "fire.selectorLabels" . | nindent 4 }}
1616
---
@@ -24,9 +24,9 @@ spec:
2424
type: {{ .Values.fire.service.type }}
2525
ports:
2626
- port: {{ .Values.fire.service.port }}
27-
targetPort: http
27+
targetPort: {{ .Values.fire.service.port_name }}
2828
protocol: TCP
29-
name: http
29+
name: {{ .Values.fire.service.port_name }}
3030
selector:
3131
{{- include "fire.selectorLabels" . | nindent 4 }}
3232

deploy/helm/fire/templates/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ spec:
3737
- "-{{ $key }}={{ $value }}"
3838
{{- end }}
3939
ports:
40-
- name: http
40+
- name: {{ .Values.fire.service.port_name }}
4141
containerPort: 4100
4242
protocol: TCP
4343
readinessProbe:
4444
httpGet:
4545
path: /ready
46-
port: http
46+
port: {{ .Values.fire.service.port_name }}
4747
volumeMounts:
4848
- name: config
4949
mountPath: /etc/fire/config.yaml

deploy/helm/fire/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ fire:
4545
service:
4646
type: ClusterIP
4747
port: 4100
48+
port_name: http
4849

4950
resources: {}
5051
# We usually recommend not to specify default resources and to leave this as a conscious

0 commit comments

Comments
 (0)