Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame^] | 1 | apiVersion: v1 |
2 | kind: Service | ||||
3 | metadata: | ||||
4 | name: dbhost | ||||
5 | labels: | ||||
6 | app: appc-dbhost | ||||
7 | spec: | ||||
8 | ports: | ||||
9 | - name: "appc-dbhost-port" | ||||
10 | port: 3306 | ||||
11 | selector: | ||||
12 | app: appc-dbhost | ||||
13 | clusterIP: None | ||||
14 | --- | ||||
15 | apiVersion: v1 | ||||
16 | kind: Service | ||||
17 | metadata: | ||||
18 | name: sdnctldb01 | ||||
19 | labels: | ||||
20 | app: appc-dbhost | ||||
21 | spec: | ||||
22 | ports: | ||||
23 | - port: 3306 | ||||
24 | selector: | ||||
25 | app: appc-dbhost | ||||
26 | clusterIP: None | ||||
27 | --- | ||||
28 | apiVersion: v1 | ||||
29 | kind: Service | ||||
30 | metadata: | ||||
31 | name: sdnctldb02 | ||||
32 | labels: | ||||
33 | app: appc-dbhost | ||||
34 | spec: | ||||
35 | ports: | ||||
36 | - port: 3306 | ||||
37 | selector: | ||||
38 | app: appc-dbhost | ||||
39 | clusterIP: None | ||||
40 | --- | ||||
41 | apiVersion: v1 | ||||
42 | kind: Service | ||||
43 | metadata: | ||||
44 | name: sdnhost | ||||
45 | labels: | ||||
46 | app: appc | ||||
47 | spec: | ||||
48 | ports: | ||||
49 | - name: "appc-port-8282" | ||||
50 | port: 8282 | ||||
51 | targetPort: 8181 | ||||
52 | nodePort: 30230 | ||||
53 | - name: "appc-port-1830" | ||||
54 | port: 1830 | ||||
55 | nodePort: 30231 | ||||
56 | type: NodePort | ||||
57 | selector: | ||||
58 | app: appc | ||||
59 | --- | ||||
60 | apiVersion: v1 | ||||
61 | kind: Service | ||||
62 | metadata: | ||||
63 | name: dgbuilder | ||||
64 | labels: | ||||
65 | app: appc-dgbuilder | ||||
66 | spec: | ||||
67 | ports: | ||||
68 | - name: "appc-dgbuilder-port" | ||||
69 | port: 3000 | ||||
70 | targetPort: 3100 | ||||
71 | nodePort: 30228 | ||||
72 | type: NodePort | ||||
73 | selector: | ||||
74 | app: appc-dgbuilder |