vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # 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 | |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 15 | #{{ if not .Values.disableEsrServer }} |
| 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | labels: |
| 20 | app: esr-esrserver |
| 21 | name: esr-esrserver |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 22 | namespace: "{{ .Values.nsPrefix }}" |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 23 | 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}}", |
LiZi | 42eb7cf | 2018-03-12 05:01:21 -0400 | [diff] [blame] | 31 | "enable_ssl": true, |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 32 | "visualRange":"1" |
| 33 | } |
| 34 | ]' |
| 35 | spec: |
| 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 | --- |
| 44 | apiVersion: v1 |
| 45 | kind: Service |
| 46 | metadata: |
| 47 | labels: |
| 48 | app: esr-esrgui |
| 49 | name: esr-esrgui |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 50 | namespace: "{{ .Values.nsPrefix }}" |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 51 | 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 | ]' |
| 62 | spec: |
| 63 | ports: |
| 64 | - name: esr-esrgui |
| 65 | port: {{.Values.esrgui.port}} |
| 66 | selector: |
| 67 | app: esr-esrgui |
| 68 | #{{ end }} |