Integrate appmgr with common template. Add ingress controller entries in the common...
[it/dep.git] / ric-platform / 50-RIC-Platform / helm / a1mediator / templates / service.yaml
1 # This is the service for A1's external facing HTTP API
2 apiVersion: v1
3 kind: Service
4 metadata:
5   name: {{ include "common.servicename.a1mediator" . }}
6   labels:
7     app.kubernetes.io/name: {{ include "common.fullname.a1mediator" . }}
8     helm.sh/chart: {{ include "common.chart" . }}
9     app.kubernetes.io/instance: {{ .Release.Name }}
10     {{- if .Chart.AppVersion }}
11     app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
12     {{- end }}
13     app.kubernetes.io/managed-by: {{ .Release.Service }}
14
15 spec:
16   type: {{ .Values.httpservice.type }}
17   ports:
18     - port: {{ .Values.httpservice.port }}
19       targetPort: http
20       protocol: TCP
21       name: http
22   selector:
23     app.kubernetes.io/name: {{ include "a1mediator.name" . }}
24     app.kubernetes.io/instance: {{ .Release.Name }}
25
26 ---
27 # This is the service for rmr between A1 and the xapps
28 apiVersion: v1
29 kind: Service
30 metadata:
31   name: {{ .Values.rmrservice.name }}
32   labels:
33 {{ include "a1mediator.labels" . | indent 4 }}
34
35 spec:
36   type: {{ .Values.rmrservice.type }}
37   ports:
38     - port: {{ .Values.rmrservice.port }}
39       targetPort: {{ .Values.rmrservice.port }}
40       protocol: TCP
41   selector:
42     app.kubernetes.io/name: {{ include "a1mediator.name" . }}
43     app.kubernetes.io/instance: {{ .Release.Name }}
44
45 ---
46 # This is the service for the "hidden" port 4561 that rmr listens on for route manager
47 apiVersion: v1
48 kind: Service
49 metadata:
50   name: {{ .Values.rmrrtemgrservice.name }}
51   labels:
52 {{ include "a1mediator.labels" . | indent 4 }}
53
54 spec:
55   type: {{ .Values.rmrrtemgrservice.type }}
56   ports:
57     - port: {{ .Values.rmrrtemgrservice.port }}
58       targetPort: {{ .Values.rmrrtemgrservice.port }}
59       protocol: TCP
60   selector:
61     app.kubernetes.io/name: {{ include "a1mediator.name" . }}
62     app.kubernetes.io/instance: {{ .Release.Name }}