blob: b676e3c6d172d703080bf1eabc5dcce824519534 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disablePortalPortaldb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: v1
3kind: Service
4metadata:
5 name: portaldb
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007 labels:
8 app: portaldb
9spec:
10 ports:
11 - name: portaldb
12 port: 3306
13 selector:
14 app: portaldb
15 clusterIP: None
yurynfcef9942017-10-26 17:10:50 +030016#{{ end }}
17#{{ if not .Values.disablePortalPortalapps }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040018---
19apiVersion: v1
20kind: Service
21metadata:
22 labels:
23 app: portalapps
24 name: portalapps
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao946e9862017-09-12 11:00:59 +080026 annotations:
27 msb.onap.org/service-info: '[
28 {
29 "serviceName": "portal",
30 "version": "v2",
31 "url": "/",
32 "protocol": "REST"
33 "port": "8989",
34 "visualRange":"1"
35 }
36 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037spec:
38 ports:
39 - name: portal-1
kerenj78eff212017-08-29 09:56:36 +000040 nodePort: {{ .Values.nodePortPrefix }}13
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 port: 8006
42 targetPort: 8005
43 - name: portal-2
kerenj78eff212017-08-29 09:56:36 +000044 nodePort: {{ .Values.nodePortPrefix }}14
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 port: 8010
46 targetPort: 8009
47 - name: portal-3
kerenj78eff212017-08-29 09:56:36 +000048 nodePort: {{ .Values.nodePortPrefix }}15
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 port: 8989
50 targetPort: 8080
51 selector:
52 app: portalapps
53 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030054#{{ end }}
55#{{ if not .Values.disablePortalVncPortal }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056---
57apiVersion: v1
58kind: Service
59metadata:
60 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000061 app: portal-vnc
62 name: portal-vnc
63 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040064spec:
65 ports:
66 - name: tcp-1
67 port: 6080
68 targetPort: 80
kerenj78eff212017-08-29 09:56:36 +000069 nodePort: {{ .Values.nodePortPrefix }}11
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070 - name: tcp-2
71 port: 5900
72 targetPort: 5900
kerenj78eff212017-08-29 09:56:36 +000073 nodePort: {{ .Values.nodePortPrefix }}12
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 selector:
BorislavG8bfc6cf2018-02-27 15:04:26 +000075 app: portal-vnc
Mandeep Khindad6ea9872017-06-24 11:49:37 -040076 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030077#{{ end }}
78#{{ if not .Values.disablePortalPortalwidgets }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -040079---
80apiVersion: v1
81kind: Service
82metadata:
83 name: portalwidgets
BorislavG8bfc6cf2018-02-27 15:04:26 +000084 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda82c63d32017-08-21 16:04:37 -040085 labels:
86 app: portalwidgets
87spec:
88 ports:
89 - name: portalwidgets
90 port: 8082
91 selector:
92 app: portalwidgets
93 clusterIP: None
BorislavG8bfc6cf2018-02-27 15:04:26 +000094#{{ end }}