diff --git a/helm/ph-ee-engine/connector-ams-mifos/templates/service.yaml b/helm/ph-ee-engine/connector-ams-mifos/templates/service.yaml index 8dcc31d18..be79f5acd 100644 --- a/helm/ph-ee-engine/connector-ams-mifos/templates/service.yaml +++ b/helm/ph-ee-engine/connector-ams-mifos/templates/service.yaml @@ -11,6 +11,9 @@ spec: port: 80 protocol: TCP targetPort: 5000 + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} - name: http port: 70 protocol: TCP @@ -18,5 +21,5 @@ spec: selector: app: ph-ee-connector-ams-mifos sessionAffinity: None - type: ClusterIP + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} \ No newline at end of file diff --git a/helm/ph-ee-engine/connector-bulk/templates/service.yaml b/helm/ph-ee-engine/connector-bulk/templates/service.yaml index 657940af7..dda87f38f 100644 --- a/helm/ph-ee-engine/connector-bulk/templates/service.yaml +++ b/helm/ph-ee-engine/connector-bulk/templates/service.yaml @@ -15,8 +15,11 @@ spec: port: 8443 protocol: TCP targetPort: 8443 + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} selector: app: ph-ee-connector-bulk sessionAffinity: None - type: ClusterIP + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} diff --git a/helm/ph-ee-engine/connector-channel/templates/service.yaml b/helm/ph-ee-engine/connector-channel/templates/service.yaml index 9b0b5dbe8..879692459 100644 --- a/helm/ph-ee-engine/connector-channel/templates/service.yaml +++ b/helm/ph-ee-engine/connector-channel/templates/service.yaml @@ -15,6 +15,9 @@ spec: port: 8443 protocol: TCP targetPort: 8443 + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} - name: http port: 82 protocol: TCP @@ -22,5 +25,5 @@ spec: selector: app: ph-ee-connector-channel sessionAffinity: None - type: ClusterIP + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} \ No newline at end of file diff --git a/helm/ph-ee-engine/connector-mojaloop/templates/service.yaml b/helm/ph-ee-engine/connector-mojaloop/templates/service.yaml index 6c010223d..7dde2491e 100644 --- a/helm/ph-ee-engine/connector-mojaloop/templates/service.yaml +++ b/helm/ph-ee-engine/connector-mojaloop/templates/service.yaml @@ -15,8 +15,11 @@ spec: protocol: TCP port: 8080 # Port where Actuator endpoints are exposed targetPort: 8080 + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} selector: app: ph-ee-connector-mojaloop-java sessionAffinity: None - type: ClusterIP + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} diff --git a/helm/ph-ee-engine/connector-ph-ee-bulk/templates/service.yaml b/helm/ph-ee-engine/connector-ph-ee-bulk/templates/service.yaml index f62c97b6a..c4653f558 100644 --- a/helm/ph-ee-engine/connector-ph-ee-bulk/templates/service.yaml +++ b/helm/ph-ee-engine/connector-ph-ee-bulk/templates/service.yaml @@ -11,9 +11,12 @@ spec: port: 80 protocol: TCP targetPort: 8080 + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} selector: app: ph-ee-connector sessionAffinity: None - type: ClusterIP + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} \ No newline at end of file diff --git a/helm/ph-ee-engine/operations-app/templates/service.yaml b/helm/ph-ee-engine/operations-app/templates/service.yaml index 60fcc7fb4..bb97defa5 100644 --- a/helm/ph-ee-engine/operations-app/templates/service.yaml +++ b/helm/ph-ee-engine/operations-app/templates/service.yaml @@ -11,8 +11,11 @@ spec: port: 80 protocol: TCP targetPort: 5000 + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} selector: app: ph-ee-operations-app sessionAffinity: None - type: ClusterIP + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} \ No newline at end of file diff --git a/helm/ph-ee-engine/operations-web/templates/service.yaml b/helm/ph-ee-engine/operations-web/templates/service.yaml index cd012df14..999b58500 100644 --- a/helm/ph-ee-engine/operations-web/templates/service.yaml +++ b/helm/ph-ee-engine/operations-web/templates/service.yaml @@ -10,4 +10,8 @@ spec: - protocol: TCP port: 4200 targetPort: 80 + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} \ No newline at end of file diff --git a/helm/ph-ee-engine/vouchers/templates/service.yaml b/helm/ph-ee-engine/vouchers/templates/service.yaml index 47ac4b6b6..534c2b178 100644 --- a/helm/ph-ee-engine/vouchers/templates/service.yaml +++ b/helm/ph-ee-engine/vouchers/templates/service.yaml @@ -11,9 +11,11 @@ spec: port: 80 protocol: TCP targetPort: 8080 - + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort.port}} + {{- end }} selector: app: ph-ee-vouchers sessionAffinity: None - type: ClusterIP + type: {{ .Values.service.type | default "ClusterIP" }} {{- end }} \ No newline at end of file