-
Notifications
You must be signed in to change notification settings - Fork 4
/
romana-datastore.yaml.t
41 lines (40 loc) · 1.01 KB
/
romana-datastore.yaml.t
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
apiVersion: v1
kind: Pod
metadata:
labels:
component: romana-datastore
tier: control-plane
name: romana-datastore
namespace: kube-system
spec:
containers:
- env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: romana-secrets
key: datastore-password
image: mariadb:10
imagePullPolicy: IfNotPresent
name: romana-datastore
args:
- --binlog-format=ROW
- --default-storage-engine=InnoDB
- --innodb-autoinc-lock-mode=2
- --bind-address=0.0.0.0
- --wsrep-on=ON
- --wsrep-provider=/usr/lib/galera/libgalera_smm.so
- --wsrep-cluster-name=romana-datastore
- --wsrep-cluster-address=gcomm://<datastore-nodes>
- --wsrep-sst-method=rsync
- --wsrep-node-address=<host-ip>
- --wsrep-node-name=romana-datastore-<node-number>
volumeMounts:
- mountPath: /var/lib/mysql
name: mysql-data
hostNetwork: true
restartPolicy: Always
volumes:
- hostPath:
path: /var/lib/romana/mysql-db
name: mysql-data