blob: ff6bd9554b6cf427fb0fc98cd3ebbb952c86d152 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Lizi91164812017-12-16 15:28:57 +080015#{{ if not .Values.disableEsrServer }}
16apiVersion: v1
17kind: Service
18metadata:
19 labels:
20 app: esr-esrserver
21 name: esr-esrserver
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +080023 annotations:
24 msb.onap.org/service-info: '[
25 {
26 "serviceName": "aai-esr-server",
27 "version": "v1",
28 "url": "/api/aai-esr-server/v1",
29 "protocol": "REST",
30 "port": "{{.Values.esrserver.port}}",
LiZi42eb7cf2018-03-12 05:01:21 -040031 "enable_ssl": true,
Lizi91164812017-12-16 15:28:57 +080032 "visualRange":"1"
33 }
34 ]'
35spec:
36 ports:
37 - name: esr-esrserver
38 port: {{.Values.esrserver.port}}
39 selector:
40 app: esr-esrserver
41#{{ end }}
42#{{ if not .Values.disableEsrGui }}
43---
44apiVersion: v1
45kind: Service
46metadata:
47 labels:
48 app: esr-esrgui
49 name: esr-esrgui
BorislavG8bfc6cf2018-02-27 15:04:26 +000050 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +080051 annotations:
52 msb.onap.org/service-info: '[
53 {
54 "serviceName": "aai-esr-gui",
55 "version": "v1",
56 "url": "/esr-gui",
57 "protocol": "UI",
58 "port": "{{.Values.esrgui.port}}",
59 "visualRange":"1"
60 }
61 ]'
62spec:
63 ports:
64 - name: esr-esrgui
65 port: {{.Values.esrgui.port}}
66 selector:
67 app: esr-esrgui
68#{{ end }}