<p>I'm working with a kubernetes cluster to deploy a high available web application, the web application needs a database to store data .</p>

<p>Is it possible to ensure relational database replication (mysql, postgres or oracle) with multiple masters in kubernetes ?</p>

<p>Any helpful comments would be appreciated.</p>

<p>If the engine can do multi-master outside of Kubernetes, it can do inside. However, I would suggest not reinvent the wheel and use existing operators (<a href="https://coreos.com/blog/introducing-operators.html" rel="nofollow noreferrer">see what operator pattern is</a>) for databases you mentioned:</p>
<ul>
<li>MySQL: <a href="https://banzaicloud.com/blog/mysql-on-kubernetes/" rel="nofollow noreferrer">https://banzaicloud.com/blog/mysql-on-kubernetes/</a></li>
<li>Postgres: <a href="https://github.com/zalando/postgres-operator" rel="nofollow noreferrer">https://github.com/zalando/postgres-operator</a></li>
<li>Postgres: <a href="https://github.com/CrunchyData/postgres-operator" rel="nofollow noreferrer">https://github.com/CrunchyData/postgres-operator</a></li>
</ul>
<p>In particular, <a href="https://github.com/oracle/mysql-operator" rel="nofollow noreferrer">https://github.com/oracle/mysql-operator</a> (described in bullet 1) claimed the support of the multi-master.</p>
