License addition in all yamls
[oom.git] / kubernetes / portal / templates / all-services.yaml
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
15 #{{ if not .Values.disablePortalPortaldb }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   name: portaldb
20   namespace: "{{ .Values.nsPrefix }}"
21   labels:
22     app: portaldb
23 spec:
24   ports:
25   - name: portaldb
26     port: 3306
27   selector:
28     app: portaldb
29   clusterIP: None
30 #{{ end }}
31 #{{ if not .Values.disablePortalPortalapps }}
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36   labels:
37     app: portalapps
38   name: portalapps
39   namespace: "{{ .Values.nsPrefix }}"
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       ]'
51 spec:
52   ports:
53   - name: portal-1
54     nodePort: {{ .Values.nodePortPrefix }}13
55     port: 8006
56     targetPort: 8005
57   - name: portal-2
58     nodePort: {{ .Values.nodePortPrefix }}14
59     port: 8010
60     targetPort: 8009
61   - name: portal-3
62     nodePort: {{ .Values.nodePortPrefix }}15
63     port: 8989
64     targetPort: 8080
65   selector:
66     app: portalapps
67   type: NodePort
68 #{{ end }}
69 #{{ if not .Values.disablePortalVncPortal }}
70 ---
71 apiVersion: v1
72 kind: Service
73 metadata:
74   labels:
75     app: portal-vnc
76   name: portal-vnc
77   namespace: "{{ .Values.nsPrefix }}"
78 spec:
79   ports:
80   - name: tcp-1
81     port: 6080
82     targetPort: 80
83     nodePort: {{ .Values.nodePortPrefix }}11
84   - name: tcp-2
85     port: 5900
86     targetPort: 5900
87     nodePort: {{ .Values.nodePortPrefix }}12
88   selector:
89     app: portal-vnc
90   type: NodePort
91 #{{ end }}
92 #{{ if not .Values.disablePortalPortalwidgets }}
93 ---
94 apiVersion: v1
95 kind: Service
96 metadata:
97   name: portalwidgets
98   namespace: "{{ .Values.nsPrefix }}"
99   labels:
100     app: portalwidgets
101 spec:
102   ports:
103   - name: portalwidgets
104     port: 8082
105   selector:
106     app: portalwidgets
107   clusterIP: None
108 #{{ end }}