summaryrefslogtreecommitdiffstats
path: root/kubernetes/nbi/templates/service.yaml
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2022-10-13 13:15:29 +0200
committerAndreas Geissler <andreas-geissler@telekom.de>2022-10-20 15:44:38 +0200
commitb19c85134c6e168ea28d0fb6cfbbdfbecce980ac (patch)
treec5348ce9c8a4fe8e00a6c4485593019fedac8278 /kubernetes/nbi/templates/service.yaml
parent1712ea65fb6d28e88bcf579dad6b980ea002432e (diff)
[EXTAPI] Make NBI ServiceMesh compatible
Enable HTTP connections to SDC, DMAPP, AAI and provide own HTTP service, allign chart to the common templates Issue-ID: OOM-3007 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de> Change-Id: I8d984c1ac8a93b154b458b1306b6b0f814e47a4f
Diffstat (limited to 'kubernetes/nbi/templates/service.yaml')
-rw-r--r--kubernetes/nbi/templates/service.yaml26
1 files changed, 1 insertions, 25 deletions
diff --git a/kubernetes/nbi/templates/service.yaml b/kubernetes/nbi/templates/service.yaml
index 4d5359ce0e..11fae18dc1 100644
--- a/kubernetes/nbi/templates/service.yaml
+++ b/kubernetes/nbi/templates/service.yaml
@@ -14,28 +14,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 }}
- name: {{ .Values.service.portName }}-{{ .Values.service.internalPort }}
- {{- else -}}
- - port: {{ .Values.service.externalPort }}
- targetPort: {{ .Values.service.internalPort }}
- name: {{ .Values.service.portName }}
- {{- end}}
- selector:
- app: {{ include "common.name" . }}
- release: {{ include "common.release" . }}
+{{ include "common.service" . }} \ No newline at end of file