blob: 09c8110904553f511bbf13065919d4b1afa04ad9 [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.disableAppcAppcDbhost }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: v1
17kind: Service
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: appc-dbhost
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 labels:
22 app: appc-dbhost
23spec:
24 ports:
25 - name: "appc-dbhost-port"
26 port: 3306
27 selector:
28 app: appc-dbhost
29 clusterIP: None
30---
31apiVersion: v1
32kind: Service
33metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000034 name: appc-sdnctldb01
35 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040036 labels:
37 app: appc-dbhost
38spec:
39 ports:
40 - port: 3306
41 selector:
42 app: appc-dbhost
43 clusterIP: None
44---
45apiVersion: v1
46kind: Service
47metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000048 name: appc-sdnctldb02
49 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 labels:
51 app: appc-dbhost
52spec:
53 ports:
54 - port: 3306
55 selector:
56 app: appc-dbhost
57 clusterIP: None
yurynfcef9942017-10-26 17:10:50 +030058#{{ end }}
59#{{ if not .Values.disableAppcAppc }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040060---
61apiVersion: v1
62kind: Service
63metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000064 name: appc-sdnhost
65 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 labels:
67 app: appc
68spec:
69 ports:
70 - name: "appc-port-8282"
71 port: 8282
72 targetPort: 8181
kerenj78eff212017-08-29 09:56:36 +000073 nodePort: {{ .Values.nodePortPrefix }}30
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 - name: "appc-port-1830"
75 port: 1830
kerenj78eff212017-08-29 09:56:36 +000076 nodePort: {{ .Values.nodePortPrefix }}31
Mandeep Khindad6ea9872017-06-24 11:49:37 -040077 type: NodePort
78 selector:
79 app: appc
yurynfcef9942017-10-26 17:10:50 +030080#{{ end }}
81#{{ if not .Values.disableAppcAppcDgbuilder }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040082---
83apiVersion: v1
84kind: Service
85metadata:
BorislavG042b6852018-03-04 15:03:52 +000086 name: appc-dgbuilder
BorislavG8bfc6cf2018-02-27 15:04:26 +000087 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040088 labels:
89 app: appc-dgbuilder
90spec:
91 ports:
92 - name: "appc-dgbuilder-port"
93 port: 3000
94 targetPort: 3100
kerenj78eff212017-08-29 09:56:36 +000095 nodePort: {{ .Values.nodePortPrefix }}28
Mandeep Khindad6ea9872017-06-24 11:49:37 -040096 type: NodePort
97 selector:
98 app: appc-dgbuilder
BorislavG8bfc6cf2018-02-27 15:04:26 +000099#{{ end }}