I am currently running a Galera Cluster in Kubernetes. The problem I am having is whenever I use a replicaset for Galera it causes problems. The problems stems from the service I have calling the first node I deploy as the "Write" member. The other two members are then designated as "Readers". If the "Write" member goes down, it causes my other two pods to crash even though they are all deemed as Masters within the MySQL database.
I was looking into workarounds for this but I was wondering if any of you had any experience with this. I saw about using a Write LoadBalancer Proxy like ProxySQL or MaxScale but I don't know if these specifically tackle the problem I am having. I also do not know enough about Kubernetes if I could choose multiple "write" members in Kubernetes with just more service yaml files.