Merge "[AAI] Add AAI http service for DCAE Service Mesh patch"
diff --git a/kubernetes/aai/templates/service.yaml b/kubernetes/aai/templates/service.yaml
index 750e1ba..aecb687 100644
--- a/kubernetes/aai/templates/service.yaml
+++ b/kubernetes/aai/templates/service.yaml
@@ -35,3 +35,25 @@
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 }}
+