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: spec:
ports: ports:
- port: {{ .Values.ui.servicePort }} - port: {{ .Values.ui.servicePort }}
{{- if .Values.ui.servicePortName }}
name: {{ .Values.ui.servicePortName }}
{{- end }}
protocol: TCP protocol: TCP
targetPort: 8001 targetPort: 8001
selector: selector:

View file

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

View file

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