blob: 5fbb70604c871f3be260395a703a295156614518 [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}}",
LiZi42eb7cf2018-03-12 05:01:21 -040017 "enable_ssl": true,
Lizi91164812017-12-16 15:28:57 +080018 "visualRange":"1"
19 }
20 ]'
21spec:
22 ports:
23 - name: esr-esrserver
24 port: {{.Values.esrserver.port}}
25 selector:
26 app: esr-esrserver
27#{{ end }}
28#{{ if not .Values.disableEsrGui }}
29---
30apiVersion: v1
31kind: Service
32metadata:
33 labels:
34 app: esr-esrgui
35 name: esr-esrgui
BorislavG8bfc6cf2018-02-27 15:04:26 +000036 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +080037 annotations:
38 msb.onap.org/service-info: '[
39 {
40 "serviceName": "aai-esr-gui",
41 "version": "v1",
42 "url": "/esr-gui",
43 "protocol": "UI",
44 "port": "{{.Values.esrgui.port}}",
45 "visualRange":"1"
46 }
47 ]'
48spec:
49 ports:
50 - name: esr-esrgui
51 port: {{.Values.esrgui.port}}
52 selector:
53 app: esr-esrgui
54#{{ end }}