diff options
author | Mandeep Khinda <mandeep.khinda@amdocs.com> | 2018-04-30 20:20:45 +0000 |
---|---|---|
committer | Mandeep Khinda <mandeep.khinda@amdocs.com> | 2018-05-01 15:54:24 +0000 |
commit | 789ee4aefe17623b25375b0a17474d12bc79354a (patch) | |
tree | 448aa4632ee0d33f0509cbedf0f8143d2ffcb7b7 /kubernetes/portal/charts/portal-app/templates | |
parent | f38eddde9bfca44ffd8c7c23f8468973dddb32fa (diff) |
exposing portal on port 8989 outside the cluster
-introducing a loadBalancer object instead of node port.
this will let us use port 8989 instead of 300xx
-removing port forwarding helper script
-making URLs configurable for flexibility
Issue-ID: OOM-633
Change-Id: I92a0205e6ed68b2217c08d124ddfaf1a1f73a6cd
Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
Diffstat (limited to 'kubernetes/portal/charts/portal-app/templates')
-rw-r--r-- | kubernetes/portal/charts/portal-app/templates/service.yaml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/portal/charts/portal-app/templates/service.yaml b/kubernetes/portal/charts/portal-app/templates/service.yaml index f9339e671a..4ccf2b02b8 100644 --- a/kubernetes/portal/charts/portal-app/templates/service.yaml +++ b/kubernetes/portal/charts/portal-app/templates/service.yaml @@ -29,14 +29,14 @@ metadata: "version": "v2", "url": "/", "protocol": "REST" - "port": "8989", + "port": "{{ .Values.service.externalPort }}", "visualRange":"1" } ]' spec: type: {{ .Values.service.type }} ports: - {{if eq .Values.service.type "NodePort" -}} + {{- if or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer") }} - port: {{ .Values.service.externalPort }} targetPort: {{ .Values.service.internalPort }} nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} @@ -59,7 +59,7 @@ spec: - port: {{ .Values.service.externalPort3 }} targetPort: {{ .Values.service.internalPort3 }} name: {{ .Values.service.portName }}3 - {{- end}} + {{- end }} selector: app: {{ include "common.name" . }} release: {{ .Release.Name }} |