diff --git a/scripts/helmcharts/openreplay/charts/alerts/templates/service.yaml b/scripts/helmcharts/openreplay/charts/alerts/templates/service.yaml index a002cfd1b..6c1eb5faa 100644 --- a/scripts/helmcharts/openreplay/charts/alerts/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/alerts/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "alerts.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/assets/templates/service.yaml b/scripts/helmcharts/openreplay/charts/assets/templates/service.yaml index 5e613c67e..5567e139d 100644 --- a/scripts/helmcharts/openreplay/charts/assets/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/assets/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "assets.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/chalice/templates/service.yaml b/scripts/helmcharts/openreplay/charts/chalice/templates/service.yaml index 02b01d1ab..9bb87743f 100644 --- a/scripts/helmcharts/openreplay/charts/chalice/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/chalice/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "chalice.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/db/templates/service.yaml b/scripts/helmcharts/openreplay/charts/db/templates/service.yaml index e0fcac464..4c968cc12 100644 --- a/scripts/helmcharts/openreplay/charts/db/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/db/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "db.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/heuristics/templates/service.yaml b/scripts/helmcharts/openreplay/charts/heuristics/templates/service.yaml index 416041806..f8eb60b8d 100644 --- a/scripts/helmcharts/openreplay/charts/heuristics/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/heuristics/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "heuristics.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/http/templates/service.yaml b/scripts/helmcharts/openreplay/charts/http/templates/service.yaml index f33db7394..44a742b51 100644 --- a/scripts/helmcharts/openreplay/charts/http/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/http/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "http.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/integrations/templates/service.yaml b/scripts/helmcharts/openreplay/charts/integrations/templates/service.yaml index 77f0bb3c7..2b93301de 100644 --- a/scripts/helmcharts/openreplay/charts/integrations/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/integrations/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "integrations.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/sink/templates/service.yaml b/scripts/helmcharts/openreplay/charts/sink/templates/service.yaml index d2c0870c3..709ec427d 100644 --- a/scripts/helmcharts/openreplay/charts/sink/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/sink/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "sink.selectorLabels" . | nindent 4 }} diff --git a/scripts/helmcharts/openreplay/charts/storage/templates/service.yaml b/scripts/helmcharts/openreplay/charts/storage/templates/service.yaml index f55083c92..6764104fe 100644 --- a/scripts/helmcharts/openreplay/charts/storage/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/storage/templates/service.yaml @@ -7,9 +7,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - targetPort: http + {{- range $key, $val := .Values.service.ports }} + - port: {{ $val }} + targetPort: {{ $key }} protocol: TCP - name: http + name: {{ $key }} + {{- end}} selector: {{- include "storage.selectorLabels" . | nindent 4 }}