09c8110904553f511bbf13065919d4b1afa04ad9
[oom.git] / kubernetes / appc / 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.disableAppcAppcDbhost }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   name: appc-dbhost
20   namespace: "{{ .Values.nsPrefix }}"
21   labels:
22     app: appc-dbhost
23 spec:
24   ports:
25   - name: "appc-dbhost-port"
26     port: 3306
27   selector:
28     app: appc-dbhost
29   clusterIP: None
30 ---
31 apiVersion: v1
32 kind: Service
33 metadata:
34   name: appc-sdnctldb01
35   namespace: "{{ .Values.nsPrefix }}"
36   labels:
37     app: appc-dbhost
38 spec:
39   ports:
40     - port: 3306
41   selector:
42     app: appc-dbhost
43   clusterIP: None
44 ---
45 apiVersion: v1
46 kind: Service
47 metadata:
48   name: appc-sdnctldb02
49   namespace: "{{ .Values.nsPrefix }}"
50   labels:
51     app: appc-dbhost
52 spec:
53   ports:
54     - port: 3306
55   selector:
56     app: appc-dbhost
57   clusterIP: None
58 #{{ end }}
59 #{{ if not .Values.disableAppcAppc }}
60 ---
61 apiVersion: v1
62 kind: Service
63 metadata:
64   name: appc-sdnhost
65   namespace: "{{ .Values.nsPrefix }}"
66   labels:
67     app: appc
68 spec:
69   ports:
70   - name: "appc-port-8282"
71     port: 8282
72     targetPort: 8181
73     nodePort: {{ .Values.nodePortPrefix }}30
74   - name: "appc-port-1830"
75     port: 1830
76     nodePort: {{ .Values.nodePortPrefix }}31
77   type: NodePort
78   selector:
79     app: appc
80 #{{ end }}
81 #{{ if not .Values.disableAppcAppcDgbuilder }}
82 ---
83 apiVersion: v1
84 kind: Service
85 metadata:
86   name: appc-dgbuilder
87   namespace: "{{ .Values.nsPrefix }}"
88   labels:
89     app: appc-dgbuilder
90 spec:
91   ports:
92   - name: "appc-dgbuilder-port"
93     port: 3000
94     targetPort: 3100
95     nodePort: {{ .Values.nodePortPrefix }}28
96   type: NodePort
97   selector:
98     app: appc-dgbuilder
99 #{{ end }}