summaryrefslogtreecommitdiffstats
path: root/kubernetes/msb/charts/msb-discovery/templates/service.yaml
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2018-03-27 00:16:33 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-27 00:16:33 +0000
commit3a64af538d2b8d86fd758da9b2a3358de9b90d7a (patch)
tree36da0aeeac44b2daa1fe8fb3968b2f03026db9c3 /kubernetes/msb/charts/msb-discovery/templates/service.yaml
parente4b9a6f9bea3b04f86ca86b004db1e32a0df5dc2 (diff)
parent0433c91e5e52122696e7645b381e3fd8bb915fc0 (diff)
Merge "Add standardized helm chart for msb"
Diffstat (limited to 'kubernetes/msb/charts/msb-discovery/templates/service.yaml')
-rw-r--r--kubernetes/msb/charts/msb-discovery/templates/service.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/kubernetes/msb/charts/msb-discovery/templates/service.yaml b/kubernetes/msb/charts/msb-discovery/templates/service.yaml
new file mode 100644
index 0000000000..841d3497c4
--- /dev/null
+++ b/kubernetes/msb/charts/msb-discovery/templates/service.yaml
@@ -0,0 +1,26 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "common.fullname" . }}
+ namespace: {{ include "common.namespace" . }}
+ labels:
+ app: {{ include "common.name" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+ annotations:
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ {{if eq .Values.service.type "NodePort" -}}
+ - port: {{ .Values.service.externalPort }}
+ nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
+ name: {{ .Values.service.name }}
+ {{- else -}}
+ - port: {{ .Values.service.externalPort }}
+ targetPort: {{ .Values.service.internalPort }}
+ name: {{ .Values.service.name }}
+ {{- end}}
+ selector:
+ app: {{ include "common.name" . }}
+ release: {{ .Release.Name }}