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}}", |
| 17 | "visualRange":"1" |
| 18 | } |
| 19 | ]' |
| 20 | spec: |
| 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 | --- |
| 29 | apiVersion: v1 |
| 30 | kind: Service |
| 31 | metadata: |
| 32 | labels: |
| 33 | app: esr-esrgui |
| 34 | name: esr-esrgui |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 35 | namespace: "{{ .Values.nsPrefix }}" |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 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 | ]' |
| 47 | spec: |
| 48 | ports: |
| 49 | - name: esr-esrgui |
| 50 | port: {{.Values.esrgui.port}} |
| 51 | selector: |
| 52 | app: esr-esrgui |
| 53 | #{{ end }} |