License addition in all yamls
[oom.git] / kubernetes / dcae / 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.disableDcaeZookeeper }}
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.disableDcaeKafka }}
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36   name: kafka
37   namespace: "{{ .Values.nsPrefix }}"
38   labels:
39     app: kafka
40 spec:
41   ports:
42   - name: kafka1
43     port: 9092
44   selector:
45     app: kafka
46   clusterIP: None
47 #{{ end }}
48 #{{ if not .Values.disableDcaeDmaap }}
49 ---
50 apiVersion: v1
51 kind: Service
52 metadata:
53   name: dmaap
54   namespace: "{{ .Values.nsPrefix }}"
55   labels:
56     app: dmaap
57     version: 1.1.0
58 spec:
59   ports:
60   - name: mr1
61     port: 3904
62     #nodePort: {{ .Values.nodePortPrefix }}27
63   - name: mr2
64     port: 3905
65     #nodePort: {{ .Values.nodePortPrefix }}26
66   selector:
67     app: dmaap
68   #type: NodePort
69   clusterIP: None
70 #{{ end }}
71 #{{ if not .Values.disableDcaeDcaePgaas }}
72 ---
73 apiVersion: v1
74 kind: Service
75 metadata:
76   name: zldciad4vipstg00
77   namespace: "{{ .Values.nsPrefix }}"
78   labels:
79     app: dcae-pgaas
80 spec:
81   selector:
82     app: dcae-pgaas
83   ports:
84     - port: 5432
85       protocol: TCP
86       targetPort: 5432
87       nodePort: {{ .Values.nodePortPrefix }}45
88   type: NodePort
89 #{{ end }}
90 #{{ if not .Values.disableDcaeDcaeCollectorCommonEvent }}
91 ---
92 apiVersion: v1
93 kind: Service
94 metadata:
95   labels:
96     app: dcae-collector-common-event
97     version: latest
98   name: dcae-collector-common-event
99   namespace: "{{ .Values.nsPrefix }}"
100 spec:
101   ports:
102   - name: dcae-ce1
103     port: 8080
104     protocol: TCP
105     nodePort: {{ .Values.nodePortPrefix }}36
106   - name: dcae-ce2
107     port: 8443
108     protocol: TCP
109     nodePort: {{ .Values.nodePortPrefix }}37
110   - name: dcae-ce3
111     port: 9999
112     protocol: TCP
113     nodePort: {{ .Values.nodePortPrefix }}38
114   selector:
115     app: dcae-collector-common-event
116   type: NodePort
117 #{{ end }}
118 #{{ if not .Values.disableDcaeDcaeCollectorDmaapbc }}
119 ---
120 apiVersion: v1
121 kind: Service
122 metadata:
123   labels:
124     app: dcae-collector-dmaapbc
125     version: latest
126   name: dcae-collector-dmaapbc
127   namespace: "{{ .Values.nsPrefix }}"
128 spec:
129   ports:
130   - name: dcae-bc1
131     port: 8080
132     protocol: TCP
133     targetPort: 8080
134     nodePort: {{ .Values.nodePortPrefix }}39
135   - name: dcae-bc2
136     port: 8443
137     protocol: TCP
138     targetPort: 8443
139     nodePort: {{ .Values.nodePortPrefix }}40
140   selector:
141     app: dcae-collector-dmaapbc
142   type: NodePort
143 #{{ end }}