blob: e0c5075e505880589a1eacc5b28d10fa93d7236a [file] [log] [blame]
Lizi91164812017-12-16 15:28:57 +08001#{{ if not .Values.disableEsrServer }}
2apiVersion: v1
3kind: Service
4metadata:
5 labels:
6 app: esr-esrserver
7 name: esr-esrserver
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +08009 annotations:
10 msb.onap.org/service-info: '[
11 {
12 "serviceName": "aai-esr-server",
13 "version": "v1",
14 "url": "/api/aai-esr-server/v1",
15 "protocol": "REST",
16 "port": "{{.Values.esrserver.port}}",
17 "visualRange":"1"
18 }
19 ]'
20spec:
21 ports:
22 - name: esr-esrserver
23 port: {{.Values.esrserver.port}}
24 selector:
25 app: esr-esrserver
26#{{ end }}
27#{{ if not .Values.disableEsrGui }}
28---
29apiVersion: v1
30kind: Service
31metadata:
32 labels:
33 app: esr-esrgui
34 name: esr-esrgui
BorislavG8bfc6cf2018-02-27 15:04:26 +000035 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +080036 annotations:
37 msb.onap.org/service-info: '[
38 {
39 "serviceName": "aai-esr-gui",
40 "version": "v1",
41 "url": "/esr-gui",
42 "protocol": "UI",
43 "port": "{{.Values.esrgui.port}}",
44 "visualRange":"1"
45 }
46 ]'
47spec:
48 ports:
49 - name: esr-esrgui
50 port: {{.Values.esrgui.port}}
51 selector:
52 app: esr-esrgui
53#{{ end }}