From: rope252 Date: Tue, 1 Nov 2022 15:19:48 +0000 (+0000) Subject: [AAI] Add AAI http service for DCAE Service Mesh patch X-Git-Tag: 11.0.0~31^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=commitdiff_plain;h=5daf7a82c63e9684c6b500409d668a1d7f77d0f7 [AAI] Add AAI http service for DCAE Service Mesh patch Adding functionality to deploy an additional service for AAI for port 80 If service mesh is enabled this service is required by the DCAE SM patch Change-Id: I234bfb335b77b7ebdd2bc4c2596924314c9f3fca Issue-ID: OOM-2820 Signed-off-by: rope252 --- diff --git a/kubernetes/aai/templates/service.yaml b/kubernetes/aai/templates/service.yaml index 750e1babc3..aecb687852 100644 --- a/kubernetes/aai/templates/service.yaml +++ b/kubernetes/aai/templates/service.yaml @@ -35,3 +35,25 @@ spec: type: {{ .Values.service.type }} selector: app: {{ include "common.name" . }} +{{- if include "common.onServiceMesh" . }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "common.servicename" . }}-internal + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ include "common.release" . }} + heritage: {{ .Release.Service }} +spec: + ports: + - name: {{ .Values.service.portName }} + port: {{ .Values.service.externalPlainPort }} + targetPort: {{ .Values.service.internalPlainPort }} + type: ClusterIP + selector: + app: {{ include "common.name" . }} +{{- end }} +