From 030f90f023f9abb2c04163957a38c24f38b48a53 Mon Sep 17 00:00:00 2001 From: Sergey Reshetnyak Date: Fri, 24 Jun 2016 13:01:39 +0300 Subject: [PATCH] Migrate mariadb to multicontainer pod Change-Id: I23c3df99fa3f870aca5e4fce7f64ed0da8497b7c --- service/mariadb.yaml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/service/mariadb.yaml b/service/mariadb.yaml index 8c0d386..8f871d3 100644 --- a/service/mariadb.yaml +++ b/service/mariadb.yaml @@ -1,18 +1,20 @@ service: - name: mariadb - ports: - - mariadb_port - container: - node-selector: - openstack-controller: "true" - probes: + name: mariadb + node-selector: + openstack-controller: "true" + ports: + - mariadb_port + containers: + - name: mariadb + image: mariadb + probes: readiness: mariadb-readiness.sh liveness: "true" - pre: + pre: - name: mariadb-bootstrap command: bootstrap.sh {{ db_root_password }} {{ db_max_timeout }} user: mysql - daemon: + daemon: command: mysqld files: - mariadb-my-cnf @@ -20,10 +22,10 @@ service: user: mysql files: - mariadb-my-cnf: - path: /etc/mysql/my.cnf - content: my.cnf.j2 - mariadb-readiness: - path: /usr/local/bin/mariadb-readiness.sh - content: readiness.sh.j2 - perm: "755" + mariadb-my-cnf: + path: /etc/mysql/my.cnf + content: my.cnf.j2 + mariadb-readiness: + path: /usr/local/bin/mariadb-readiness.sh + content: readiness.sh.j2 + perm: "755"