-
Notifications
You must be signed in to change notification settings - Fork 0
/
galera.controller.yaml
54 lines (54 loc) · 1.41 KB
/
galera.controller.yaml
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
kind: ReplicationController
apiVersion: v1beta3
metadata:
name: galera-controller
labels:
name: galera
spec:
replicas: 3
selector:
name: galera
template:
metadata:
labels:
name: galera
spec:
containers:
- name: galera
image: syslogic/docker-percona-galera
ports:
- containerPort: 3306
- containerPort: 4444
- containerPort: 4567
- containerPort: 4568
env:
- name: PUBLISH
key: PUBLISH
value: "3306"
- name: CLUSTER
key: CLUSTER
value: galera
- name: ETCD_HOST
key: ETCD_HOST
value: 172.17.8.101
- name: MYSQL_USER
key: MYSQL_USER
value: mysql
- name: MYSQL_PASS
key: MYSQL_PASS
value: mysql
volumeMounts:
- name: database-data
mountPath: /var/lib/mysql
# livenessProbe:
# exec:
# command:
# - "/bin/sh"
# - "-c"
# - "/app/bin/galera_check_health && echo ok"
# initialDelaySeconds: 30
# timeoutSeconds: 5
volumes:
- name: database-data
hostPath:
path: /var/lib/mysql