diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-08-29 19:11:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-29 19:11:41 +0000 |
commit | 55e351e7f20c6f8b8a183dac7a2fbad85bfcfd85 (patch) | |
tree | 498d64faabc64a25c270cd00e61a1bbc4fd157c4 /kubernetes/pomba/charts/pomba-search-data/templates/service.yaml | |
parent | f518374148e940c92fefbcf4acf5d24c48e9bdaf (diff) | |
parent | 417b3b46c64f965bed72793b3572ee89b73b22e6 (diff) |
Merge "Add Search Data Service to POMBA OOM"
Diffstat (limited to 'kubernetes/pomba/charts/pomba-search-data/templates/service.yaml')
-rw-r--r-- | kubernetes/pomba/charts/pomba-search-data/templates/service.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kubernetes/pomba/charts/pomba-search-data/templates/service.yaml b/kubernetes/pomba/charts/pomba-search-data/templates/service.yaml new file mode 100644 index 0000000000..a30bac1afb --- /dev/null +++ b/kubernetes/pomba/charts/pomba-search-data/templates/service.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "common.servicename" . }} + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + type: {{ .Values.service.type }} + ports: + {{if eq .Values.service.type "NodePort" -}} + - port: {{ .Values.service.internalPort }} + nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} + name: {{ .Values.service.portName }} + {{- else -}} + - port: {{ .Values.service.internalPort }} + name: {{ .Values.service.portName }} + {{- end}} + selector: + app: {{ include "common.name" . }} + release: {{ .Release.Name }} |