blob: 1f0a9a720c70425a0e2907a74f48dafbe0dd53e7 [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.disableSdcSdcEs }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: v1
17kind: Service
18metadata:
19 labels:
20 app: sdc-es
21 name: sdc-es
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023spec:
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
yurynfcef9942017-10-26 17:10:50 +030032#{{ end }}
33#{{ if not .Values.disableSdcSdcCs }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034---
35apiVersion: v1
36kind: Service
37metadata:
38 labels:
39 app: sdc-cs
40 name: sdc-cs
BorislavG8bfc6cf2018-02-27 15:04:26 +000041 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040042spec:
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
yurynfcef9942017-10-26 17:10:50 +030051#{{ end }}
52#{{ if not .Values.disableSdcSdcKb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053---
54apiVersion: v1
55kind: Service
56metadata:
57 labels:
58 app: sdc-kb
59 name: sdc-kb
BorislavG8bfc6cf2018-02-27 15:04:26 +000060 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061spec:
62 ports:
63 - name: sdc-kb-port-5601
64 port: 5601
65 selector:
66 app: sdc-kb
67 clusterIP: None
yurynfcef9942017-10-26 17:10:50 +030068#{{ end }}
69#{{ if not .Values.disableSdcSdcBe }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070---
71apiVersion: v1
72kind: Service
73metadata:
74 labels:
75 app: sdc-be
76 name: sdc-be
BorislavG8bfc6cf2018-02-27 15:04:26 +000077 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao19f78a72017-09-15 04:58:43 -040078 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 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -040098spec:
99 ports:
100 - name: sdc-be-port-8443
kerenj78eff212017-08-29 09:56:36 +0000101 nodePort: {{ .Values.nodePortPrefix }}04
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400102 port: 8443
103 - name: sdc-be-port-8080
kerenj78eff212017-08-29 09:56:36 +0000104 nodePort: {{ .Values.nodePortPrefix }}05
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400105 port: 8080
106 selector:
107 app: sdc-be
108 type: NodePort
yurynfcef9942017-10-26 17:10:50 +0300109#{{ end }}
110#{{ if not .Values.disableSdcSdcFe }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400111---
112apiVersion: v1
113kind: Service
114metadata:
115 labels:
116 app: sdc-fe
117 name: sdc-fe
BorislavG8bfc6cf2018-02-27 15:04:26 +0000118 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao19f78a72017-09-15 04:58:43 -0400119 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 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400130spec:
131 ports:
132 - name: sdc-fe-port-9443
kerenj78eff212017-08-29 09:56:36 +0000133 nodePort: {{ .Values.nodePortPrefix }}07
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400134 port: 9443
135 - name: sdc-fe-port-8181
kerenj78eff212017-08-29 09:56:36 +0000136 nodePort: {{ .Values.nodePortPrefix }}06
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400137 port: 8181
138 selector:
139 app: sdc-fe
140 type: NodePort
yurynfcef9942017-10-26 17:10:50 +0300141#{{ end }}