Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 1 | #{{ if not .Values.disableEsrServer }} |
| 2 | apiVersion: v1 |
| 3 | kind: Service |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: esr-esrserver |
| 7 | name: esr-esrserver |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}" |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 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}}", |
LiZi | 42eb7cf | 2018-03-12 05:01:21 -0400 | [diff] [blame^] | 17 | "enable_ssl": true, |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 18 | "visualRange":"1" |
| 19 | } |
| 20 | ]' |
| 21 | spec: |
| 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 | --- |
| 30 | apiVersion: v1 |
| 31 | kind: Service |
| 32 | metadata: |
| 33 | labels: |
| 34 | app: esr-esrgui |
| 35 | name: esr-esrgui |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 36 | namespace: "{{ .Values.nsPrefix }}" |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 37 | 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 | ]' |
| 48 | spec: |
| 49 | ports: |
| 50 | - name: esr-esrgui |
| 51 | port: {{.Values.esrgui.port}} |
| 52 | selector: |
| 53 | app: esr-esrgui |
| 54 | #{{ end }} |