Be able to configure service port names
This commit is contained in:
parent
365c1da217
commit
c3ebe8e76d
3 changed files with 8 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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: {}
|
||||
|
|
Loading…
Reference in a new issue