summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/controller-blueprints/templates/service.yaml
diff options
context:
space:
mode:
authorSteve Alphonse Siani <alphonse.steve.siani.djissitchi@ibm.com>2019-01-25 16:16:29 -0500
committerAlexis de Talhouƫt <adetalhouet89@gmail.com>2019-02-26 09:56:35 -0500
commite20fd5e3bd8333789d74952eda0ae21e70185fca (patch)
tree3b8bc4010371fc8c7d5f962861e2436be2032ef4 /kubernetes/common/controller-blueprints/templates/service.yaml
parent07a623e3e4d810791ae7129c529c42556e920bc6 (diff)
allign CB and BP containers to OOM
Change-Id: I9cb9c1ba231c2218df0cc857ea3b64f331dac13c Issue-ID: CCSDK-957 Signed-off-by: Steve Alphonse Siani <alphonse.steve.siani.djissitchi@ibm.com>
Diffstat (limited to 'kubernetes/common/controller-blueprints/templates/service.yaml')
-rwxr-xr-x[-rw-r--r--]kubernetes/common/controller-blueprints/templates/service.yaml16
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