-
Notifications
You must be signed in to change notification settings - Fork 33
/
innodb-cluster.yml
60 lines (60 loc) · 1.23 KB
/
innodb-cluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
apiVersion: v1
kind: Service
metadata:
name: innodb-cluster
labels:
app: innodb-cluster
spec:
ports:
- port: 3360
name: mysql-classic-protocol
- port: 33060
name: mysql-x-protocol
- port: 6606
name: mysql-gcs
- port: 6446
name: mysql-router-rw
- port: 6447
name: mysql-router-ro
clusterIP: None
selector:
app: innodb-cluster
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: innodb-cluster
spec:
serviceName: "innodb-cluster"
replicas: 3
template:
metadata:
labels:
app: innodb-cluster
spec:
containers:
- name: innodb-cluster
image: mattalord/innodb-cluster
ports:
- containerPort: 3360
name: mysql-classic-protocol
- containerPort: 33060
name: mysql-x-protocol
- containerPort: 6606
name: mysql-gcs
- containerPort: 6446
name: mysql-router-rw
- containerPort: 6447
name: mysql-router-ro
volumeMounts:
- name: mysql-data
mountPath: /var/lib/mysql
volumeClaimTemplates:
- metadata:
name: innodb-cluster
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi