blob: 28ca0303b11dd9307ca22839fd814da7006f9711 [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
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-portal"
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
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000025 namespace: "{{ .Values.nsPrefix }}-portal"
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:
61 app: vnc-portal
62 name: vnc-portal
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 namespace: "{{ .Values.nsPrefix }}-portal"
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:
75 app: vnc-portal
76 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
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000084 namespace: "{{ .Values.nsPrefix }}-portal"
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
yurynfcef9942017-10-26 17:10:50 +030094#{{ end }}