summaryrefslogtreecommitdiffstats
path: root/kubernetes/pomba/charts/pomba-search-data/templates/service.yaml
diff options
context:
space:
mode:
authorGeora Barsky <georab@amdocs.com>2018-08-17 13:31:36 -0400
committerGeora Barsky <georab@amdocs.com>2018-08-29 10:17:20 -0400
commit417b3b46c64f965bed72793b3572ee89b73b22e6 (patch)
treede9d6d45bd5a61be9f9d96ce62624c4454797b0b /kubernetes/pomba/charts/pomba-search-data/templates/service.yaml
parent86da5e3720ecdad23d435c043d7d13d3a42188dd (diff)
Add Search Data Service to POMBA OOM
Issue-ID: LOG-612 Change-Id: I3ef3707e332c44d3dbaee5a9601607063b99c3ea Signed-off-by: Geora Barsky <georab@amdocs.com>
Diffstat (limited to 'kubernetes/pomba/charts/pomba-search-data/templates/service.yaml')
-rw-r--r--kubernetes/pomba/charts/pomba-search-data/templates/service.yaml24
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 }}