summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/postgres/charts/pgpool/templates/service.yaml
diff options
context:
space:
mode:
authorjasmineWen <jasmine.wen@amdocs.com>2018-09-19 23:37:35 +0000
committerMandeep Khinda <Mandeep.Khinda@amdocs.com>2018-10-10 02:19:30 +0000
commitf7997b4daa4ea468d1ecd1cb5f54477812d6bb40 (patch)
treeef813507eaf45c009052f780d75c805c2681647e /kubernetes/common/postgres/charts/pgpool/templates/service.yaml
parent05bc4cb68ad0d92c7e83af9092301677fd51eca7 (diff)
mv pgpool to a subchart of postgres
Issue-ID: OOM-1355 Change-Id: I37a8906b2039eeaf46da5c3884a87b69a79db3ef Signed-off-by: jasmineWen <jasmine.wen@amdocs.com>
Diffstat (limited to 'kubernetes/common/postgres/charts/pgpool/templates/service.yaml')
-rw-r--r--kubernetes/common/postgres/charts/pgpool/templates/service.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/kubernetes/common/postgres/charts/pgpool/templates/service.yaml b/kubernetes/common/postgres/charts/pgpool/templates/service.yaml
new file mode 100644
index 0000000000..86442a2740
--- /dev/null
+++ b/kubernetes/common/postgres/charts/pgpool/templates/service.yaml
@@ -0,0 +1,26 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ .Values.service.name }}
+ 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 }}