Migrate mariadb to multicontainer pod
Change-Id: I23c3df99fa3f870aca5e4fce7f64ed0da8497b7c
This commit is contained in:
parent
fcf800363d
commit
030f90f023
|
@ -1,18 +1,20 @@
|
||||||
service:
|
service:
|
||||||
name: mariadb
|
name: mariadb
|
||||||
ports:
|
node-selector:
|
||||||
- mariadb_port
|
openstack-controller: "true"
|
||||||
container:
|
ports:
|
||||||
node-selector:
|
- mariadb_port
|
||||||
openstack-controller: "true"
|
containers:
|
||||||
probes:
|
- name: mariadb
|
||||||
|
image: mariadb
|
||||||
|
probes:
|
||||||
readiness: mariadb-readiness.sh
|
readiness: mariadb-readiness.sh
|
||||||
liveness: "true"
|
liveness: "true"
|
||||||
pre:
|
pre:
|
||||||
- name: mariadb-bootstrap
|
- name: mariadb-bootstrap
|
||||||
command: bootstrap.sh {{ db_root_password }} {{ db_max_timeout }}
|
command: bootstrap.sh {{ db_root_password }} {{ db_max_timeout }}
|
||||||
user: mysql
|
user: mysql
|
||||||
daemon:
|
daemon:
|
||||||
command: mysqld
|
command: mysqld
|
||||||
files:
|
files:
|
||||||
- mariadb-my-cnf
|
- mariadb-my-cnf
|
||||||
|
@ -20,10 +22,10 @@ service:
|
||||||
user: mysql
|
user: mysql
|
||||||
|
|
||||||
files:
|
files:
|
||||||
mariadb-my-cnf:
|
mariadb-my-cnf:
|
||||||
path: /etc/mysql/my.cnf
|
path: /etc/mysql/my.cnf
|
||||||
content: my.cnf.j2
|
content: my.cnf.j2
|
||||||
mariadb-readiness:
|
mariadb-readiness:
|
||||||
path: /usr/local/bin/mariadb-readiness.sh
|
path: /usr/local/bin/mariadb-readiness.sh
|
||||||
content: readiness.sh.j2
|
content: readiness.sh.j2
|
||||||
perm: "755"
|
perm: "755"
|
||||||
|
|
Loading…
Reference in New Issue