blob: 68f0db75160b7551118fc3e8951377fc7f949ce0 [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
8 namespace: "{{ .Values.nsPrefix }}-esr"
9 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
35 namespace: "{{ .Values.nsPrefix }}-esr"
36 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 }}