<p>I would suggest to only run stateless apps in k8s. One should run statefull apps like databases in dedicated database solutions like AWS RDS.</p>

CC BY-SA 4.0
2018-06-28T05:01:10.070Z
2018-06-28T05:01:10.070Z
030
<p>I am converting a webapp from monolithic to kubernetes based architecture.
But how can mysql be persistent with data when we have 2 mysql pods in each of 2 differnet nodes?
I think we can mount a volume but still if my server with the mounted volume fails, this will be a single point of failure.
How can I avoid this?
I want to acheive no single point of failure using kubernetes without cloud.
How can I acheive this?</p>

<docker><kubernetes><microservices><mysql><high-availability>
Mysql with Kubernetes
ankk98
# Mysql with Kubernetes

(Asked by: username_0 on 2018-06-27)

I am converting a webapp from monolithic to kubernetes based architecture.
But how can mysql be persistent with data when we have 2 mysql pods in each of 2 differnet nodes?
I think we can mount a volume but still if my server with the mounted volume fails, this will be a single point of failure.
How can I avoid this?
I want to acheive no single point of failure using kubernetes without cloud.
How can I acheive this?

**Tags:** docker, kubernetes, microservices, mysql, high-availability


---

## 1 answers

### Answer by username_1 on 2018-06-28. Score: 2

I would suggest to only run stateless apps in k8s. One should run statefull apps like databases in dedicated database solutions like AWS RDS.


---

