diff options
author | BorislavG <Borislav.Glozman@amdocs.com> | 2018-03-28 19:31:32 +0300 |
---|---|---|
committer | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2018-03-28 16:37:28 +0000 |
commit | 12b6158b39be5096ee80c0f449e44c84127e66ed (patch) | |
tree | bbe47491cdfb5930280d7ab37faeb57d3a3002bb /kubernetes/appc/charts/appc-cdt/templates/service.yaml | |
parent | c8b445c485855bb8b28cc3b9ca0f7d0a92f20673 (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.yaml | 26 |
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 }} |