License addition in all yamls
[oom.git] / kubernetes / uui / 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.disableUuiUui }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   labels:
20     app: uui
21   name: uui
22   namespace: "{{ .Values.nsPrefix }}"
23   annotations:
24     msb.onap.org/service-info: '[
25       {
26           "serviceName": "usecaseui-gui",
27           "version": "v1",
28           "url": "/usecase-ui",
29           "path":"/iui/usecaseui",
30           "protocol": "UI"
31           "port": "8080",
32           "visualRange":"1|0"
33       }
34       ]'
35 spec:
36   ports:
37   - name: uui
38     nodePort: {{ .Values.uuiPortPrefix }}98
39     port: 8080
40   selector:
41     app: uui
42   type: NodePort
43 #{{ end }}
44 #{{ if not .Values.disableUuiServer }}
45 ---
46 apiVersion: v1
47 kind: Service
48 metadata:
49   labels:
50     app: uui-server
51   name: uui-server
52   namespace: "{{ .Values.nsPrefix }}"
53   annotations:
54     msb.onap.org/service-info: '[
55       {
56           "serviceName": "usecaseui-server",
57           "version": "v1",
58           "url": "/api/usecaseui/server/v1",
59           "protocol": "UI"
60           "port": "8080",
61           "visualRange":"1|0"
62       }
63       ]'
64 spec:
65   ports:
66   - name: uui-server
67     nodePort: {{ .Values.uuiPortPrefix }}99
68     port: 8082
69   selector:
70     app: uui-server
71   type: NodePort
72 #{{ end }}