License addition in all yamls
[oom.git] / kubernetes / message-router / 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.disableMessageRouterZookeeper }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   name: zookeeper
20   namespace: "{{ .Values.nsPrefix }}"
21   labels:
22     app: zookeeper
23 spec:
24   ports:
25   - name: zookeeper1
26     port: 2181
27   selector:
28     app: zookeeper
29   clusterIP: None
30 #{{ end }}
31 #{{ if not .Values.disableMessageRouterGlobalKafka }}
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36   name: global-kafka
37   namespace: "{{ .Values.nsPrefix }}"
38   labels:
39     app: global-kafka
40 spec:
41   ports:
42   - name: kafka1
43     port: 9092
44   selector:
45     app: global-kafka
46   clusterIP: None
47 #{{ end }}
48 #{{ if not .Values.disableMessageRouterDmaap }}
49 ---
50 apiVersion: v1
51 kind: Service
52 metadata:
53   name: dmaap
54   namespace: "{{ .Values.nsPrefix }}"
55   labels:
56     app: dmaap
57     version: 1.0.0
58   annotations:
59     msb.onap.org/service-info: '[
60       {
61           "serviceName": "message-router",
62           "version": "v1",
63           "url": "/",
64           "protocol": "REST",
65           "port": "3904",
66           "visualRange":"1"
67       }
68       ]'
69 spec:
70   ports:
71   - name: mr1
72     port: 3904
73     nodePort: {{ .Values.nodePortPrefix }}27
74   - name: mr2
75     port: 3905
76     nodePort: {{ .Values.nodePortPrefix }}26
77   selector:
78     app: dmaap
79   type: NodePort
80 #{{ end }}