blob: 6b8dbfb8a01210cae49d3bd8e67f9a4b5d2e5003 [file] [log] [blame]
Mike Elliott13fed112018-02-28 08:33:33 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: {{ .Values.service.name }}
5 namespace: {{ include "common.namespace" . }}
6 labels:
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
11spec:
12 ports:
13 - port: {{ .Values.service.internalPort }}
14 name: {{ .Values.service.name }}
15 selector:
16 app: {{ include "common.name" . }}
17 release: {{ .Release.Name }}
18 clusterIP: None
19#{{ if not .Values.disableNfsProvisioner }}
20---
21kind: Service
22apiVersion: v1
23metadata:
jmac018e37b2018-04-05 18:14:10 +000024 name: {{ .Release.Name }}-{{ .Values.nfsprovisionerPrefix }}-nfs-provisioner
Mike Elliott13fed112018-02-28 08:33:33 -050025 namespace: {{ include "common.namespace" . }}
26 labels:
27 app: {{ .Values.nfsprovisionerPrefix }}-nfs-provisioner
28spec:
29 ports:
30 - name: nfs
31 port: {{ .Values.service.nfsPort }}
32 - name: mountd
33 port: {{ .Values.service.mountdPort }}
34 - name: rpcbind
35 port: {{ .Values.service.rpcbindPort }}
36 - name: rpcbind-udp
37 port: {{ .Values.service.rpcbindUdpPort }}
38 protocol: UDP
39 selector:
40 app: {{ .Values.nfsprovisionerPrefix }}-nfs-provisioner
41#{{ end }}
42---
43# Client service for connecting to any MySQL instance for reads.
44# Only master: sdnc-dbhost-0 accepts the write request.
45apiVersion: v1
46kind: Service
47metadata:
48 name: {{ .Values.service.name }}-read
49 namespace: {{ include "common.namespace" . }}
50 labels:
51 app: {{ include "common.name" . }}
52spec:
53 ports:
54 - port: {{ .Values.service.internalPort }}
55 name: {{ .Values.service.name }}
56 selector:
57 app: {{ include "common.name" . }}
58 release: {{ .Release.Name }}
59---
60apiVersion: v1
61kind: Service
62metadata:
63 name: {{ .Values.sdnctlPrefix }}-sdnctldb01
64 namespace: {{ include "common.namespace" . }}
65 labels:
66 app: {{ include "common.name" . }}
67spec:
68 ports:
69 - port: {{ .Values.service.internalPort }}
70 name: {{ .Values.service.name }}
71 selector:
72 app: {{ include "common.name" . }}
73 release: {{ .Release.Name }}
74 clusterIP: None
75---
76apiVersion: v1
77kind: Service
78metadata:
79 name: {{ .Values.sdnctlPrefix }}-sdnctldb02
80 namespace: {{ include "common.namespace" . }}
81 labels:
82 app: {{ include "common.name" . }}
83spec:
84 ports:
85 - port: {{ .Values.service.internalPort }}
86 name: {{ .Values.service.name }}
87 selector:
88 app: {{ include "common.name" . }}
89 release: {{ .Release.Name }}
90 clusterIP: None
Neha Jainbaadb382018-04-03 11:34:59 -040091---
92{{ if .Values.geoEnabled }}
93apiVersion: v1
94kind: Service
95metadata:
96 name: {{ .Values.service.name }}-nodeport
97 namespace: {{ include "common.namespace" . }}
98 labels:
99 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-0
100spec:
101 ports:
102 - name: {{ .Values.service.internalPort }}
103 port: {{ .Values.service.internalPort }}
104 targetPort: {{ .Values.service.internalPort }}
105 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.externalPort1 }}
106 - name: {{ .Values.xtrabackup.internalPort }}
107 port: {{ .Values.xtrabackup.internalPort }}
108 targetPort: {{ .Values.xtrabackup.internalPort }}
109 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.externalPort2 }}
110 type: NodePort
111 selector:
112 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-0
113 release: {{ .Release.Name }}
114{{ end }}