summaryrefslogtreecommitdiffstats
path: root/kubernetes/appc/charts/appc-cdt/templates/service.yaml
diff options
context:
space:
mode:
authorBorislavG <Borislav.Glozman@amdocs.com>2018-03-28 19:31:32 +0300
committerBorislav Glozman <Borislav.Glozman@amdocs.com>2018-03-28 16:37:28 +0000
commit12b6158b39be5096ee80c0f449e44c84127e66ed (patch)
treebbe47491cdfb5930280d7ab37faeb57d3a3002bb /kubernetes/appc/charts/appc-cdt/templates/service.yaml
parentc8b445c485855bb8b28cc3b9ca0f7d0a92f20673 (diff)
Add CDT to APPC chart
Change-Id: Ida2098fab6b51214935dfb503454e681d4e1a00d Issue-ID: OOM-823 Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
Diffstat (limited to 'kubernetes/appc/charts/appc-cdt/templates/service.yaml')
-rw-r--r--kubernetes/appc/charts/appc-cdt/templates/service.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/kubernetes/appc/charts/appc-cdt/templates/service.yaml b/kubernetes/appc/charts/appc-cdt/templates/service.yaml
new file mode 100644
index 0000000000..86442a2740
--- /dev/null
+++ b/kubernetes/appc/charts/appc-cdt/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 }}