blob: 9425ef4b80286bdf4d8dd8dd6b99b3e61d313a49 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdncSdncDbhost }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: v1
3kind: Service
4metadata:
5 name: dbhost
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007 labels:
8 app: sdnc-dbhost
9spec:
10 ports:
11 - port: 3306
12 selector:
13 app: sdnc-dbhost
14 clusterIP: None
15---
Hao Kuang27af4a32017-12-15 20:38:03 +000016# Client service for connecting to any MySQL instance for reads.
17# Only master: sdnc-dbhost-0 accepts the write request.
18apiVersion: v1
19kind: Service
20metadata:
21 name: dbhost-read
22 namespace: "{{ .Values.nsPrefix }}-sdnc"
23 labels:
24 app: sdnc-dbhost
25spec:
26 ports:
27 - name: sdnc-dbhost
28 port: 3306
29 selector:
30 app: sdnc-dbhost
31---
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032apiVersion: v1
33kind: Service
34metadata:
35 name: sdnctldb01
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000036 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037 labels:
38 app: sdnc-dbhost
39spec:
40 ports:
41 - port: 3306
42 selector:
43 app: sdnc-dbhost
44 clusterIP: None
45---
46apiVersion: v1
47kind: Service
48metadata:
49 name: sdnctldb02
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000050 namespace: "{{ .Values.nsPrefix }}-sdnc"
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
Hao Kuang27af4a32017-12-15 20:38:03 +000059#{{ end }}
60#{{ if not .Values.disableSdncSdnc }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061---
62apiVersion: v1
63kind: Service
64metadata:
65 name: sdnc-dgbuilder
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000066 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 labels:
68 app: sdnc-dgbuilder
69spec:
70 ports:
71 - name: "sdnc-dgbuilder-port"
72 port: 3000
73 targetPort: 3100
kerenj78eff212017-08-29 09:56:36 +000074 nodePort: {{ .Values.nodePortPrefix }}03
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 type: NodePort
76 selector:
77 app: sdnc-dgbuilder
78---
79apiVersion: v1
80kind: Service
81metadata:
82 name: sdnhost
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000083 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040084 labels:
85 app: sdnc
HuabingZhao9e283932017-09-12 23:33:43 -040086 annotations:
87 msb.onap.org/service-info: '[
88 {
89 "serviceName": "sdnc",
90 "version": "v1",
91 "url": "/",
92 "protocol": "REST",
93 "port": "8282",
94 "visualRange":"1",
95 "path": "/"
96 }
97 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -040098spec:
99 ports:
Mandeep Khindaedc59412017-10-05 12:18:14 +0000100 - name: "sdnc-port-8181"
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400101 port: 8282
102 targetPort: 8181
kerenj78eff212017-08-29 09:56:36 +0000103 nodePort: {{ .Values.nodePortPrefix }}02
Mandeep Khindaedc59412017-10-05 12:18:14 +0000104 - name: "sdnc-port-8101"
105 port: 8201
106 targetPort: 8101
Sylvain Desbureaux5d326f22017-11-09 16:49:40 +0100107 nodePort: {{ .Values.nodePortPrefix }}08
Hao Kuang27af4a32017-12-15 20:38:03 +0000108 - name: "sdnc-jolokia-port-8080"
109 port: 8280
110 targetPort: 8080
111 nodePort: {{ .Values.nodePortPrefix }}46
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400112 type: NodePort
113 selector:
114 app: sdnc
Hao Kuang27af4a32017-12-15 20:38:03 +0000115---
116kind: Service
117apiVersion: v1
118metadata:
119 name: nfs-provisioner
120 namespace: "{{ .Values.nsPrefix }}-sdnc"
121 labels:
122 app: nfs-provisioner
123spec:
124 ports:
125 - name: nfs
126 port: 2049
127 - name: mountd
128 port: 20048
129 - name: rpcbind
130 port: 111
131 - name: rpcbind-udp
132 port: 111
133 protocol: UDP
134 selector:
135 app: nfs-provisioner
yurynfcef9942017-10-26 17:10:50 +0300136#{{ end }}
137#{{ if not .Values.disableSdncSdncPortal }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400138---
139apiVersion: v1
140kind: Service
141metadata:
142 name: sdnc-portal
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000143 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400144 labels:
145 app: sdnc-portal
HuabingZhao9e283932017-09-12 23:33:43 -0400146 annotations:
147 msb.onap.org/service-info: '[
148 {
149 "serviceName": "sdnc-portal",
150 "version": "v1",
151 "url": "/",
152 "protocol": "UI",
153 "port": "8843",
154 "visualRange":"0|1"
155 }
156 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400157spec:
158 ports:
159 - name: "sdnc-portal-port"
160 port: 8843
kerenj78eff212017-08-29 09:56:36 +0000161 nodePort: {{ .Values.nodePortPrefix }}01
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400162 type: NodePort
163 selector:
164 app: sdnc-portal
Sylvain Desbureaux5d326f22017-11-09 16:49:40 +0100165#{{ end }}
Hao Kuang27af4a32017-12-15 20:38:03 +0000166#{{ if .Values.enableODLCluster }}
167---
168apiVersion: v1
169kind: Service
170metadata:
171 name: sdnhost-cluster
172 namespace: "{{ .Values.nsPrefix }}-sdnc"
173 labels:
174 app: sdnc
175 annotations:
176 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
177spec:
178 ports:
179 - name: "sdnc-cluster-port"
180 port: 2550
181 clusterIP: None
182 selector:
183 app: sdnc
184 sessionAffinity: None
185 type: ClusterIP
186#{{ end }}