License addition in all yamls
[oom.git] / kubernetes / multicloud / 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.disableMulticloudFramework }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   name: framework
20   namespace: "{{ .Values.nsPrefix }}"
21   labels:
22     name: framework
23   annotations:
24     msb.onap.org/service-info: '[
25     {
26       "serviceName": "multicloud",
27       "version": "v0",
28       "url": "/api/multicloud/v0",
29       "protocol": "REST",
30       "port": "9001",
31       "visualRange": "1"
32     }
33     ]'
34 spec:
35   ports:
36   - name: "framework-port"
37     port: 9001
38     nodePort: {{ .Values.nodePortPrefix }}91
39   selector:
40     app: framework
41   type: NodePort
42 #{{ end }}
43 #{{ if not .Values.disableMulticloudMulticloudVio }}
44 ---
45 apiVersion: v1
46 kind: Service
47 metadata:
48   name: multicloud-vio
49   namespace: "{{ .Values.nsPrefix }}"
50   labels:
51     name: multicloud-vio
52   annotations:
53     msb.onap.org/service-info: '[
54     {
55       "serviceName": "multicloud-vio",
56       "version": "v0",
57       "url": "/api/multicloud-vio/v0",
58       "protocol": "REST",
59       "port": "9004",
60       "visualRange": "1"
61     }
62     ]'
63
64 spec:
65   ports:
66   - name: "multicloud-port"
67     port: 9004
68     nodePort: {{ .Values.nodePortPrefix }}92
69   selector:
70     app: multicloud-vio
71   type: NodePort
72 #{{ end }}
73 #{{ if not .Values.disableMulticloudMulticloudOcata }}
74 ---
75 apiVersion: v1
76 kind: Service
77 metadata:
78   name: multicloud-ocata
79   namespace: "{{ .Values.nsPrefix }}"
80   labels:
81     name: multicloud-ocata
82   annotations:
83     msb.onap.org/service-info: '[
84     {
85       "serviceName": "multicloud-ocata",
86       "version": "v0",
87       "url": "/api/multicloud-ocata/v0",
88       "protocol": "REST",
89       "port": "9006",
90       "visualRange": "1"
91     }
92     ]'
93
94 spec:
95   ports:
96   - name: "multicloud-port"
97     port: 9006
98     nodePort: {{ .Values.nodePortPrefix }}93
99   selector:
100     app: multicloud-ocata
101   type: NodePort
102 #{{ end }}
103 #{{ if not .Values.disableMulticloudMulticloudWindriver }}
104 ---
105 apiVersion: v1
106 kind: Service
107 metadata:
108   name: multicloud-windriver
109   namespace: "{{ .Values.nsPrefix }}"
110   labels:
111     name: multicloud-windriver
112   annotations:
113     msb.onap.org/service-info: '[
114     {
115       "serviceName": "multicloud-titanium_cloud",
116       "version": "v0",
117       "url": "/api/multicloud-titanium_cloud/v0",
118       "protocol": "REST",
119       "port": "9005",
120       "visualRange": "1"
121     }
122     ]'
123
124 spec:
125   ports:
126   - name: "multicloud-port"
127     port: 9005
128     nodePort: {{ .Values.nodePortPrefix }}94
129   selector:
130     app: multicloud-windriver
131   type: NodePort
132 #{{ end }}