Two mariadb instance using same persistent storage in docker Two mariadb instance using same persistent storage in docker kubernetes kubernetes

Two mariadb instance using same persistent storage in docker


You can not run two MariaDB engines on the same storage, and if I understood you right this is what you expected. Even if you'd mount an RWX volume on two pods, if you put /var/lib/mysql of containers in two separate MaraiaDB pods in the same place, it will result in a conflict between database engines. For MariaDB clustering lookup MariaDB Galera - an almoust-fully-synchronous replication for MariaDB. But you'll need three db engines running for it to make sense.