diff options
author | Alexis de Talhouƫt <adetalhouet89@gmail.com> | 2019-02-26 14:56:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-26 14:56:56 +0000 |
commit | 716d2039e4ad652c8cbb3ebdda09172998aacf0c (patch) | |
tree | ece46d2c4f81723c28d9b9d86c47faea049caa2b /kubernetes/common/controller-blueprints/templates/service.yaml | |
parent | 8cc3cc09f296c7290ad64d8d4ff3c7627aaa8df2 (diff) | |
parent | e20fd5e3bd8333789d74952eda0ae21e70185fca (diff) |
Merge "allign CB and BP containers to OOM"
Diffstat (limited to 'kubernetes/common/controller-blueprints/templates/service.yaml')
-rwxr-xr-x[-rw-r--r--] | kubernetes/common/controller-blueprints/templates/service.yaml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/kubernetes/common/controller-blueprints/templates/service.yaml b/kubernetes/common/controller-blueprints/templates/service.yaml index 438ca19699..e0a66d2483 100644..100755 --- a/kubernetes/common/controller-blueprints/templates/service.yaml +++ b/kubernetes/common/controller-blueprints/templates/service.yaml @@ -1,5 +1,7 @@ # Copyright (c) 2018 Amdocs, Bell Canada # +# Modifications Copyright (c) 2019 IBM, Bell Canada +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -37,16 +39,12 @@ metadata: spec: type: {{ .Values.service.type }} ports: - {{if eq .Values.service.type "NodePort" -}} - - port: {{ .Values.service.externalPort }} - targetPort: {{ .Values.service.internalPort }} - nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} - name: {{ .Values.service.portName | default "http" }} - {{- else -}} - - port: {{ .Values.service.externalPort }} - targetPort: {{ .Values.service.internalPort }} - name: {{ .Values.service.portName | default "http" }} + - port: {{ .Values.service.externalPort }} + targetPort: {{ .Values.service.internalPort }} + {{- if eq .Values.service.type "NodePort"}} + nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} {{- end}} + name: {{ .Values.service.portName | default "http" }} selector: app: {{ include "common.name" . }} release: {{ .Release.Name }}
\ No newline at end of file |