summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiachra Corcoran <fiachra.corcoran@est.tech>2022-11-03 14:33:57 +0000
committerGerrit Code Review <gerrit@onap.org>2022-11-03 14:33:57 +0000
commit390ecaac61a827874b729ce2e6606eabfad15e0c (patch)
treedb0122727ac66912df26fadda319db732c613031
parent8778cc162677eac7d2db8302f035efc37878fdec (diff)
parent5daf7a82c63e9684c6b500409d668a1d7f77d0f7 (diff)
Merge "[AAI] Add AAI http service for DCAE Service Mesh patch"
-rw-r--r--kubernetes/aai/templates/service.yaml22
1 files changed, 22 insertions, 0 deletions
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 }}
+