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 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disablePortalPortaldb }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | name: portaldb |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 21 | labels: |
| 22 | app: portaldb |
| 23 | spec: |
| 24 | ports: |
| 25 | - name: portaldb |
| 26 | port: 3306 |
| 27 | selector: |
| 28 | app: portaldb |
| 29 | clusterIP: None |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 30 | #{{ end }} |
| 31 | #{{ if not .Values.disablePortalPortalapps }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 32 | --- |
| 33 | apiVersion: v1 |
| 34 | kind: Service |
| 35 | metadata: |
| 36 | labels: |
| 37 | app: portalapps |
| 38 | name: portalapps |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 39 | namespace: "{{ .Values.nsPrefix }}" |
HuabingZhao | 946e986 | 2017-09-12 11:00:59 +0800 | [diff] [blame] | 40 | annotations: |
| 41 | msb.onap.org/service-info: '[ |
| 42 | { |
| 43 | "serviceName": "portal", |
| 44 | "version": "v2", |
| 45 | "url": "/", |
| 46 | "protocol": "REST" |
| 47 | "port": "8989", |
| 48 | "visualRange":"1" |
| 49 | } |
| 50 | ]' |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | spec: |
| 52 | ports: |
| 53 | - name: portal-1 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 54 | nodePort: {{ .Values.nodePortPrefix }}13 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 55 | port: 8006 |
| 56 | targetPort: 8005 |
| 57 | - name: portal-2 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 58 | nodePort: {{ .Values.nodePortPrefix }}14 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | port: 8010 |
| 60 | targetPort: 8009 |
| 61 | - name: portal-3 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 62 | nodePort: {{ .Values.nodePortPrefix }}15 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 63 | port: 8989 |
| 64 | targetPort: 8080 |
| 65 | selector: |
| 66 | app: portalapps |
| 67 | type: NodePort |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 68 | #{{ end }} |
| 69 | #{{ if not .Values.disablePortalVncPortal }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | --- |
| 71 | apiVersion: v1 |
| 72 | kind: Service |
| 73 | metadata: |
| 74 | labels: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 75 | app: portal-vnc |
| 76 | name: portal-vnc |
| 77 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 78 | spec: |
| 79 | ports: |
| 80 | - name: tcp-1 |
| 81 | port: 6080 |
| 82 | targetPort: 80 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 83 | nodePort: {{ .Values.nodePortPrefix }}11 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 84 | - name: tcp-2 |
| 85 | port: 5900 |
| 86 | targetPort: 5900 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 87 | nodePort: {{ .Values.nodePortPrefix }}12 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 88 | selector: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 89 | app: portal-vnc |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 90 | type: NodePort |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 91 | #{{ end }} |
| 92 | #{{ if not .Values.disablePortalPortalwidgets }} |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 93 | --- |
| 94 | apiVersion: v1 |
| 95 | kind: Service |
| 96 | metadata: |
| 97 | name: portalwidgets |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 98 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 99 | labels: |
| 100 | app: portalwidgets |
| 101 | spec: |
| 102 | ports: |
| 103 | - name: portalwidgets |
| 104 | port: 8082 |
| 105 | selector: |
| 106 | app: portalwidgets |
| 107 | clusterIP: None |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 108 | #{{ end }} |