blob: f8e435b1bc3ae361c0efee41b9306b95a5551c59 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disablePolicyMariadb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: v1
17kind: Service
18metadata:
19 name: mariadb
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 labels:
22 app: mariadb
23spec:
24 ports:
25 - name: 3306-port
26 port: 3306
27 selector:
28 app: mariadb
29 clusterIP: None
yurynfcef9942017-10-26 17:10:50 +030030#{{ end }}
31#{{ if not .Values.disablePolicyNexus }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032---
33apiVersion: v1
34kind: Service
35metadata:
36 labels:
37 app: nexus
38 name: nexus
BorislavG8bfc6cf2018-02-27 15:04:26 +000039 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040spec:
41 ports:
42 - name: nexus-port
43 port: 8081
44 selector:
45 app: nexus
46 clusterIP: None
yurynfcef9942017-10-26 17:10:50 +030047#{{ end }}
48#{{ if not .Values.disablePolicyDrools }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049---
50apiVersion: v1
51kind: Service
52metadata:
53 labels:
54 app: drools
55 name: drools
BorislavG8bfc6cf2018-02-27 15:04:26 +000056 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057spec:
58 ports:
59 - name: "drools-port"
60 port: 6969
kerenj78eff212017-08-29 09:56:36 +000061 nodePort: {{ .Values.nodePortPrefix }}17
Alexis de Talhouëtdf4db0b2017-12-11 08:36:25 -050062 - name: "drools-port2"
63 port: 9696
64 nodePort: {{ .Values.nodePortPrefix }}21
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 selector:
66 app: drools
67 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030068#{{ end }}
69#{{ if not .Values.disablePolicyPap }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070---
71apiVersion: v1
72kind: Service
73metadata:
74 name: pap
BorislavG8bfc6cf2018-02-27 15:04:26 +000075 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040076 labels:
77 app: pap
78spec:
79 ports:
80 - name: 8443-port
81 port: 8443
kerenj78eff212017-08-29 09:56:36 +000082 nodePort: {{ .Values.nodePortPrefix }}19
Mandeep Khindad6ea9872017-06-24 11:49:37 -040083 - name: 9091-port
84 port: 9091
kerenj78eff212017-08-29 09:56:36 +000085 nodePort: {{ .Values.nodePortPrefix }}18
Mandeep Khindad6ea9872017-06-24 11:49:37 -040086 selector:
87 app: pap
88 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030089#{{ end }}
90#{{ if not .Values.disablePolicyPdp }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040091---
92apiVersion: v1
93kind: Service
94metadata:
95 name: pdp
BorislavG8bfc6cf2018-02-27 15:04:26 +000096 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040097 labels:
98 app: pdp
HuabingZhaoba913cb2017-08-30 17:22:19 +080099 annotations:
100 msb.onap.org/service-info: '[
101 {
102 "serviceName": "policy-pdp",
103 "version": "v1",
104 "url": "/pdp",
HuabingZhaoead916e2017-09-15 21:02:46 -0400105 "protocol": "REST",
HuabingZhaof48d0832017-09-01 12:50:20 +0800106 "port": "8081",
HuabingZhaoba913cb2017-08-30 17:22:19 +0800107 "visualRange":"1"
108 },
109 {
110 "serviceName": "policy-pdp-deprecated",
111 "version": "v1",
112 "url": "/pdp",
HuabingZhaoead916e2017-09-15 21:02:46 -0400113 "protocol": "REST",
HuabingZhaof48d0832017-09-01 12:50:20 +0800114 "port": "8081",
HuabingZhaoba913cb2017-08-30 17:22:19 +0800115 "visualRange":"1",
116 "path":"/pdp"
117 }
118 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400119spec:
120 ports:
121 - name: 8081-port
122 port: 8081
kerenj78eff212017-08-29 09:56:36 +0000123 nodePort: {{ .Values.nodePortPrefix }}20
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400124 selector:
125 app: pdp
126 type: NodePort
yurynfcef9942017-10-26 17:10:50 +0300127#{{ end }}
128#{{ if not .Values.disablePolicyBrmsgw }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400129---
130apiVersion: v1
131kind: Service
132metadata:
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400133 name: brmsgw
BorislavG8bfc6cf2018-02-27 15:04:26 +0000134 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400135 labels:
136 app: brmsgw
137spec:
138 ports:
139 - name: 9989-port
140 port: 9989
kerenj78eff212017-08-29 09:56:36 +0000141 nodePort: {{ .Values.nodePortPrefix }}16
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400142 selector:
143 app: brmsgw
144 type: NodePort
vaibhav_16dec8de39a72018-01-17 12:22:52 +0000145#{{ end }}