blob: d6958fcc6dc0a9ae785860c9db47210243e3ab97 [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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disablePortalPortaldb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: v1
17kind: Service
18metadata:
19 name: portaldb
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 labels:
22 app: portaldb
23spec:
24 ports:
25 - name: portaldb
26 port: 3306
27 selector:
28 app: portaldb
29 clusterIP: None
yurynfcef9942017-10-26 17:10:50 +030030#{{ end }}
31#{{ if not .Values.disablePortalPortalapps }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032---
33apiVersion: v1
34kind: Service
35metadata:
36 labels:
37 app: portalapps
38 name: portalapps
BorislavG8bfc6cf2018-02-27 15:04:26 +000039 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao946e9862017-09-12 11:00:59 +080040 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 Khindad6ea9872017-06-24 11:49:37 -040051spec:
52 ports:
53 - name: portal-1
kerenj78eff212017-08-29 09:56:36 +000054 nodePort: {{ .Values.nodePortPrefix }}13
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 port: 8006
56 targetPort: 8005
57 - name: portal-2
kerenj78eff212017-08-29 09:56:36 +000058 nodePort: {{ .Values.nodePortPrefix }}14
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 port: 8010
60 targetPort: 8009
61 - name: portal-3
kerenj78eff212017-08-29 09:56:36 +000062 nodePort: {{ .Values.nodePortPrefix }}15
Mandeep Khindad6ea9872017-06-24 11:49:37 -040063 port: 8989
64 targetPort: 8080
65 selector:
66 app: portalapps
67 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030068#{{ end }}
69#{{ if not .Values.disablePortalVncPortal }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070---
71apiVersion: v1
72kind: Service
73metadata:
74 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000075 app: portal-vnc
76 name: portal-vnc
77 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040078spec:
79 ports:
80 - name: tcp-1
81 port: 6080
82 targetPort: 80
kerenj78eff212017-08-29 09:56:36 +000083 nodePort: {{ .Values.nodePortPrefix }}11
Mandeep Khindad6ea9872017-06-24 11:49:37 -040084 - name: tcp-2
85 port: 5900
86 targetPort: 5900
kerenj78eff212017-08-29 09:56:36 +000087 nodePort: {{ .Values.nodePortPrefix }}12
Mandeep Khindad6ea9872017-06-24 11:49:37 -040088 selector:
BorislavG8bfc6cf2018-02-27 15:04:26 +000089 app: portal-vnc
Mandeep Khindad6ea9872017-06-24 11:49:37 -040090 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030091#{{ end }}
92#{{ if not .Values.disablePortalPortalwidgets }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -040093---
94apiVersion: v1
95kind: Service
96metadata:
97 name: portalwidgets
BorislavG8bfc6cf2018-02-27 15:04:26 +000098 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda82c63d32017-08-21 16:04:37 -040099 labels:
100 app: portalwidgets
101spec:
102 ports:
103 - name: portalwidgets
104 port: 8082
105 selector:
106 app: portalwidgets
107 clusterIP: None
BorislavG8bfc6cf2018-02-27 15:04:26 +0000108#{{ end }}