diff --git a/charts/flyte-core/templates/admin/service.yaml b/charts/flyte-core/templates/admin/service.yaml index 577533e48b..17a42a9191 100644 --- a/charts/flyte-core/templates/admin/service.yaml +++ b/charts/flyte-core/templates/admin/service.yaml @@ -32,5 +32,9 @@ spec: - name: http-metrics protocol: TCP port: 10254 + {{- with .Values.flyteadmin.service.additionalPorts -}} + {{ tpl (toYaml .) $ | nindent 4 }} + {{- end }} + {{- end }} selector: {{ include "flyteadmin.selectorLabels" . | nindent 4 }} {{- end }} diff --git a/charts/flyte-core/templates/datacatalog/service.yaml b/charts/flyte-core/templates/datacatalog/service.yaml index 494d7c2b38..b116c3742d 100644 --- a/charts/flyte-core/templates/datacatalog/service.yaml +++ b/charts/flyte-core/templates/datacatalog/service.yaml @@ -21,5 +21,9 @@ spec: port: 89 protocol: TCP targetPort: 8089 + {{- with .Values.datacatalog.service.additionalPorts -}} + {{ tpl (toYaml .) $ | nindent 4 }} + {{- end }} + {{- end }} selector: {{ include "datacatalog.selectorLabels" . | nindent 4 }} {{- end }} diff --git a/charts/flyte-core/templates/propeller/service.yaml b/charts/flyte-core/templates/propeller/service.yaml index 7569f3e6fc..143e4a45ac 100644 --- a/charts/flyte-core/templates/propeller/service.yaml +++ b/charts/flyte-core/templates/propeller/service.yaml @@ -11,5 +11,9 @@ spec: - name: http-metrics protocol: TCP port: 10254 + {{- with .Values.flytepropeller.service.additionalPorts -}} + {{ tpl (toYaml .) $ | nindent 4 }} + {{- end }} + {{- end }} selector: {{ include "flytepropeller.selectorLabels" . | nindent 4 }} {{- end }} diff --git a/charts/flyte-core/values.yaml b/charts/flyte-core/values.yaml index f3580786a6..f216b71d5e 100755 --- a/charts/flyte-core/values.yaml +++ b/charts/flyte-core/values.yaml @@ -54,6 +54,8 @@ flyteadmin: projectcontour.io/upstream-protocol.h2c: grpc type: ClusterIP loadBalancerSourceRanges: [] + # -- Appends additional ports to the service spec. + additionalPorts: [] # -- Configuration for service accounts for FlyteAdmin serviceAccount: # -- Should a service account be created for flyteadmin @@ -228,6 +230,8 @@ datacatalog: annotations: projectcontour.io/upstream-protocol.h2c: grpc type: NodePort + # -- Appends additional ports to the service spec. + additionalPorts: [] # -- Configuration for service accounts for Datacatalog serviceAccount: # -- Should a service account be created for Datacatalog @@ -356,6 +360,8 @@ flytepropeller: service: # -- If enabled create the flytepropeller service enabled: false + # -- Appends additional ports to the service spec. + additionalPorts: [] # -- Settings for flytepropeller service monitor serviceMonitor: