License addition in all yamls
[oom.git] / kubernetes / sdc / 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.disableSdcSdcEs }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   labels:
20     app: sdc-es
21   name: sdc-es
22   namespace: "{{ .Values.nsPrefix }}"
23 spec:
24   ports:
25   - name: sdc-es-port-9200
26     port: 9200
27   - name: sdc-es-port-9300
28     port: 9300
29   selector:
30     app: sdc-es
31   clusterIP: None
32 #{{ end }}
33 #{{ if not .Values.disableSdcSdcCs }}
34 ---
35 apiVersion: v1
36 kind: Service
37 metadata:
38   labels:
39     app: sdc-cs
40   name: sdc-cs
41   namespace: "{{ .Values.nsPrefix }}"
42 spec:
43   ports:
44   - name: sdc-cs-port-9042
45     port: 9042
46   - name: sdc-cs-port-9160
47     port: 9160
48   selector:
49     app: sdc-cs
50   clusterIP: None
51 #{{ end }}
52 #{{ if not .Values.disableSdcSdcKb }}
53 ---
54 apiVersion: v1
55 kind: Service
56 metadata:
57   labels:
58     app: sdc-kb
59   name: sdc-kb
60   namespace: "{{ .Values.nsPrefix }}"
61 spec:
62   ports:
63   - name: sdc-kb-port-5601
64     port: 5601
65   selector:
66     app: sdc-kb
67   clusterIP: None
68 #{{ end }}
69 #{{ if not .Values.disableSdcSdcBe }}
70 ---
71 apiVersion: v1
72 kind: Service
73 metadata:
74   labels:
75     app: sdc-be
76   name: sdc-be
77   namespace: "{{ .Values.nsPrefix }}"
78   annotations:
79     msb.onap.org/service-info: '[
80       {
81           "serviceName": "sdc",
82           "version": "v1",
83           "url": "/sdc/v1",
84           "protocol": "REST",
85           "port": "8080",
86           "visualRange":"1"
87       },
88       {
89           "serviceName": "sdc-deprecated",
90           "version": "v1",
91           "url": "/sdc/v1",
92           "protocol": "REST",
93           "port": "8080",
94           "visualRange":"1",
95           "path":"/sdc/v1"
96       }
97       ]'
98 spec:
99   ports:
100   - name: sdc-be-port-8443
101     nodePort: {{ .Values.nodePortPrefix }}04
102     port: 8443
103   - name: sdc-be-port-8080
104     nodePort: {{ .Values.nodePortPrefix }}05
105     port: 8080
106   selector:
107     app: sdc-be
108   type: NodePort
109 #{{ end }}
110 #{{ if not .Values.disableSdcSdcFe }}
111 ---
112 apiVersion: v1
113 kind: Service
114 metadata:
115   labels:
116     app: sdc-fe
117   name: sdc-fe
118   namespace: "{{ .Values.nsPrefix }}"
119   annotations:
120     msb.onap.org/service-info: '[
121       {
122           "serviceName": "sdc-gui",
123           "version": "v1",
124           "url": "/sdc1",
125           "protocol": "UI",
126           "port": "8181",
127           "visualRange":"0|1"
128       }
129       ]'
130 spec:
131   ports:
132   - name: sdc-fe-port-9443
133     nodePort: {{ .Values.nodePortPrefix }}07
134     port: 9443
135   - name: sdc-fe-port-8181
136     nodePort: {{ .Values.nodePortPrefix }}06
137     port: 8181
138   selector:
139     app: sdc-fe
140   type: NodePort
141 #{{ end }}