License addition in all yamls
[oom.git] / kubernetes / policy / 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.disablePolicyMariadb }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   name: mariadb
20   namespace: "{{ .Values.nsPrefix }}"
21   labels:
22     app: mariadb
23 spec:
24   ports:
25   - name: 3306-port
26     port: 3306
27   selector:
28     app: mariadb
29   clusterIP: None
30 #{{ end }}
31 #{{ if not .Values.disablePolicyNexus }}
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36   labels:
37     app: nexus
38   name: nexus
39   namespace: "{{ .Values.nsPrefix }}"
40 spec:
41   ports:
42   - name: nexus-port
43     port: 8081
44   selector:
45     app: nexus
46   clusterIP: None
47 #{{ end }}
48 #{{ if not .Values.disablePolicyDrools }}
49 ---
50 apiVersion: v1
51 kind: Service
52 metadata:
53   labels:
54     app: drools
55   name: drools
56   namespace: "{{ .Values.nsPrefix }}"
57 spec:
58   ports:
59   - name: "drools-port"
60     port: 6969
61     nodePort: {{ .Values.nodePortPrefix }}17
62   - name: "drools-port2"
63     port: 9696
64     nodePort: {{ .Values.nodePortPrefix }}21
65   selector:
66     app: drools
67   type: NodePort
68 #{{ end }}
69 #{{ if not .Values.disablePolicyPap }}
70 ---
71 apiVersion: v1
72 kind: Service
73 metadata:
74   name: pap
75   namespace: "{{ .Values.nsPrefix }}"
76   labels:
77     app: pap
78 spec:
79   ports:
80   - name: 8443-port
81     port: 8443
82     nodePort: {{ .Values.nodePortPrefix }}19
83   - name: 9091-port
84     port: 9091
85     nodePort: {{ .Values.nodePortPrefix }}18
86   selector:
87     app: pap
88   type: NodePort
89 #{{ end }}
90 #{{ if not .Values.disablePolicyPdp }}
91 ---
92 apiVersion: v1
93 kind: Service
94 metadata:
95   name: pdp
96   namespace: "{{ .Values.nsPrefix }}"
97   labels:
98     app: pdp
99   annotations:
100     msb.onap.org/service-info: '[
101       {
102           "serviceName": "policy-pdp",
103           "version": "v1",
104           "url": "/pdp",
105           "protocol": "REST",
106           "port": "8081",
107           "visualRange":"1"
108       },
109       {
110           "serviceName": "policy-pdp-deprecated",
111           "version": "v1",
112           "url": "/pdp",
113           "protocol": "REST",
114           "port": "8081",
115           "visualRange":"1",
116           "path":"/pdp"
117       }
118       ]'
119 spec:
120   ports:
121   - name: 8081-port
122     port: 8081
123     nodePort: {{ .Values.nodePortPrefix }}20
124   selector:
125     app: pdp
126   type: NodePort
127 #{{ end }}
128 #{{ if not .Values.disablePolicyBrmsgw }}
129 ---
130 apiVersion: v1
131 kind: Service
132 metadata:
133   name: brmsgw
134   namespace: "{{ .Values.nsPrefix }}"
135   labels:
136     app: brmsgw
137 spec:
138   ports:
139   - name: 9989-port
140     port: 9989
141     nodePort: {{ .Values.nodePortPrefix }}16
142   selector:
143     app: brmsgw
144   type: NodePort
145 #{{ end }}