Be able to configure service port names

This commit is contained in:
Samuel Wyma 2019-09-02 20:43:16 +01:00
parent 365c1da217
commit c3ebe8e76d
3 changed files with 8 additions and 2 deletions

View file

@ -16,6 +16,9 @@ metadata:
spec:
ports:
- port: {{ .Values.ui.servicePort }}
{{- if .Values.ui.servicePortName }}
name: {{ .Values.ui.servicePortName }}
{{- end }}
protocol: TCP
targetPort: 8001
selector:

View file

@ -17,13 +17,13 @@ metadata:
spec:
ports:
{{- if .Values.controller.metricsConfig.enabled }}
- name: metrics
- name: {{ .Values.controller.metricsServicePortName }}
port: {{ .Values.controller.metricsServicePort }}
protocol: TCP
targetPort: {{ .Values.controller.metricsConfig.port }}
{{- end }}
{{- if .Values.controller.telemetryConfig.enabled }}
- name: telemetry
- name: {{ .Values.controller.telemetryServicePortName }}
port: {{ .Values.controller.telemetryServicePort }}
protocol: TCP
targetPort: {{ .Values.controller.telemetryConfig.port }}

View file

@ -52,7 +52,9 @@ controller:
globallevel: "0"
serviceType: ClusterIP
metricsServicePort: 8080
metricsServicePortName: metrics
telemetryServicePort: 8081
telemetryServicePortName: telemetry
# Annotations to be applied to the controller Service
serviceAnnotations: {}
# Optional labels to add to the controller Service
@ -81,6 +83,7 @@ ui:
name: ui
serviceType: ClusterIP
servicePort: 80
# servicePortName: http
serviceAccount: argo-ui
# Annotations to be applied to the UI Service
serviceAnnotations: {}