diff options
author | Fiachra Corcoran <fiachra.corcoran@est.tech> | 2023-03-01 08:14:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-03-01 08:14:05 +0000 |
commit | f423db98e3050fd98823174a99c24ea573880103 (patch) | |
tree | 1abedeab4201dc34eb5a63a4d27ac919b7bdf54e /kubernetes/vnfsdk/templates/service.yaml | |
parent | 1d65e4c1fc5b38bf5f82ee37d8ad2b4bae9b263a (diff) | |
parent | 7479042d780f5c9281c67d141ac61ca0c0c76529 (diff) |
Merge "[VNFSDK] Make VNFSDK ServiceMesh ready"
Diffstat (limited to 'kubernetes/vnfsdk/templates/service.yaml')
-rw-r--r-- | kubernetes/vnfsdk/templates/service.yaml | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/kubernetes/vnfsdk/templates/service.yaml b/kubernetes/vnfsdk/templates/service.yaml index 25786bd7ad..6127b2b373 100644 --- a/kubernetes/vnfsdk/templates/service.yaml +++ b/kubernetes/vnfsdk/templates/service.yaml @@ -1,5 +1,6 @@ {{/* # Copyright © 2017 Amdocs, Bell Canada +# Modification © 2023 Deutsche Telekom # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,27 +15,4 @@ # limitations under the License. */}} -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: {{ include "common.release" . }} - 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 }} - {{- else -}} - - port: {{ .Values.service.externalPort }} - targetPort: {{ .Values.service.internalPort }} - {{- end}} - name: {{ .Values.service.portName | default "http" }} - selector: - app: {{ include "common.name" . }} - release: {{ include "common.release" . }} +{{ include "common.service" . }}
\ No newline at end of file |