blob: 14d7b01a5958fb7a122739a5407831cf1c2db9ee [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.disableSdncSdncDbhost }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: v1
17kind: Service
18metadata:
19 name: dbhost
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 labels:
22 app: sdnc-dbhost
23spec:
24 ports:
25 - port: 3306
26 selector:
27 app: sdnc-dbhost
28 clusterIP: None
29---
Hao Kuang27af4a32017-12-15 20:38:03 +000030# Client service for connecting to any MySQL instance for reads.
31# Only master: sdnc-dbhost-0 accepts the write request.
32apiVersion: v1
33kind: Service
34metadata:
35 name: dbhost-read
BorislavG8bfc6cf2018-02-27 15:04:26 +000036 namespace: "{{ .Values.nsPrefix }}"
Hao Kuang27af4a32017-12-15 20:38:03 +000037 labels:
38 app: sdnc-dbhost
39spec:
40 ports:
41 - name: sdnc-dbhost
42 port: 3306
43 selector:
44 app: sdnc-dbhost
45---
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046apiVersion: v1
47kind: Service
48metadata:
49 name: sdnctldb01
BorislavG8bfc6cf2018-02-27 15:04:26 +000050 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 labels:
52 app: sdnc-dbhost
53spec:
54 ports:
55 - port: 3306
56 selector:
57 app: sdnc-dbhost
58 clusterIP: None
59---
60apiVersion: v1
61kind: Service
62metadata:
63 name: sdnctldb02
BorislavG8bfc6cf2018-02-27 15:04:26 +000064 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 labels:
66 app: sdnc-dbhost
67spec:
68 ports:
69 - port: 3306
70 selector:
71 app: sdnc-dbhost
72 clusterIP: None
Hao Kuang27af4a32017-12-15 20:38:03 +000073#{{ end }}
74#{{ if not .Values.disableSdncSdnc }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075---
76apiVersion: v1
77kind: Service
78metadata:
79 name: sdnc-dgbuilder
BorislavG8bfc6cf2018-02-27 15:04:26 +000080 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040081 labels:
82 app: sdnc-dgbuilder
83spec:
84 ports:
85 - name: "sdnc-dgbuilder-port"
86 port: 3000
87 targetPort: 3100
kerenj78eff212017-08-29 09:56:36 +000088 nodePort: {{ .Values.nodePortPrefix }}03
Mandeep Khindad6ea9872017-06-24 11:49:37 -040089 type: NodePort
90 selector:
91 app: sdnc-dgbuilder
92---
93apiVersion: v1
94kind: Service
95metadata:
96 name: sdnhost
BorislavG8bfc6cf2018-02-27 15:04:26 +000097 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040098 labels:
99 app: sdnc
HuabingZhao9e283932017-09-12 23:33:43 -0400100 annotations:
101 msb.onap.org/service-info: '[
102 {
103 "serviceName": "sdnc",
104 "version": "v1",
105 "url": "/",
106 "protocol": "REST",
107 "port": "8282",
108 "visualRange":"1",
109 "path": "/"
110 }
111 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400112spec:
113 ports:
Mandeep Khindaedc59412017-10-05 12:18:14 +0000114 - name: "sdnc-port-8181"
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400115 port: 8282
116 targetPort: 8181
kerenj78eff212017-08-29 09:56:36 +0000117 nodePort: {{ .Values.nodePortPrefix }}02
Mandeep Khindaedc59412017-10-05 12:18:14 +0000118 - name: "sdnc-port-8101"
119 port: 8201
120 targetPort: 8101
Sylvain Desbureaux5d326f22017-11-09 16:49:40 +0100121 nodePort: {{ .Values.nodePortPrefix }}08
Hao Kuang27af4a32017-12-15 20:38:03 +0000122 - name: "sdnc-jolokia-port-8080"
123 port: 8280
124 targetPort: 8080
125 nodePort: {{ .Values.nodePortPrefix }}46
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400126 type: NodePort
127 selector:
128 app: sdnc
Hao Kuang27af4a32017-12-15 20:38:03 +0000129---
130kind: Service
131apiVersion: v1
132metadata:
133 name: nfs-provisioner
BorislavG8bfc6cf2018-02-27 15:04:26 +0000134 namespace: "{{ .Values.nsPrefix }}"
Hao Kuang27af4a32017-12-15 20:38:03 +0000135 labels:
136 app: nfs-provisioner
137spec:
138 ports:
139 - name: nfs
140 port: 2049
141 - name: mountd
142 port: 20048
143 - name: rpcbind
144 port: 111
145 - name: rpcbind-udp
146 port: 111
147 protocol: UDP
148 selector:
149 app: nfs-provisioner
yurynfcef9942017-10-26 17:10:50 +0300150#{{ end }}
151#{{ if not .Values.disableSdncSdncPortal }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400152---
153apiVersion: v1
154kind: Service
155metadata:
156 name: sdnc-portal
BorislavG8bfc6cf2018-02-27 15:04:26 +0000157 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400158 labels:
159 app: sdnc-portal
HuabingZhao9e283932017-09-12 23:33:43 -0400160 annotations:
161 msb.onap.org/service-info: '[
162 {
163 "serviceName": "sdnc-portal",
164 "version": "v1",
165 "url": "/",
166 "protocol": "UI",
167 "port": "8843",
168 "visualRange":"0|1"
169 }
170 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400171spec:
172 ports:
173 - name: "sdnc-portal-port"
174 port: 8843
kerenj78eff212017-08-29 09:56:36 +0000175 nodePort: {{ .Values.nodePortPrefix }}01
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400176 type: NodePort
177 selector:
178 app: sdnc-portal
Sylvain Desbureaux5d326f22017-11-09 16:49:40 +0100179#{{ end }}
Hao Kuang27af4a32017-12-15 20:38:03 +0000180#{{ if .Values.enableODLCluster }}
181---
182apiVersion: v1
183kind: Service
184metadata:
185 name: sdnhost-cluster
BorislavG8bfc6cf2018-02-27 15:04:26 +0000186 namespace: "{{ .Values.nsPrefix }}"
Hao Kuang27af4a32017-12-15 20:38:03 +0000187 labels:
188 app: sdnc
189 annotations:
190 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
191spec:
192 ports:
193 - name: "sdnc-cluster-port"
194 port: 2550
195 clusterIP: None
196 selector:
197 app: sdnc
198 sessionAffinity: None
199 type: ClusterIP
200#{{ end }}