# New in Kubernetes - Problem with Mysql Deployment

**URL:** <https://discuss.kubernetes.io/t/new-in-kubernetes-problem-with-mysql-deployment/10125>\
**Category:** General Discussions\
**Created:** [March 17, 2020, 6:48pm UTC](https://discuss.kubernetes.io/t/new-in-kubernetes-problem-with-mysql-deployment/10125 "2020-03-17T18:48:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SudoKaKaRoty](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@SudoKaKaRoty](https://discuss.kubernetes.io/u/SudoKaKaRoty)\
**Post date:** [March 17, 2020, 6:48pm UTC](https://discuss.kubernetes.io/t/new-in-kubernetes-problem-with-mysql-deployment/10125/1 "2020-03-17T18:48:04Z")

</div>

Hello,

Im very new in K8S and I would like to create a deployment of Mysql with 5 Replicas and the volume must share the same volume in order after to create a Load Balancing in Front of these 5 replicas but it doesnt work.

All the container try to read in same time the volume that occur an error.

What could you give me as advice ? any link ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Jeroen](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Jeroen](https://discuss.kubernetes.io/u/Jeroen)\
**Post date:** [March 17, 2020, 7:21pm UTC](https://discuss.kubernetes.io/t/new-in-kubernetes-problem-with-mysql-deployment/10125/2 "2020-03-17T19:21:48Z")

</div>

are you following this guide? https:// kubernetes .io/docs/tasks/run-application/run-replicated-stateful-application if not try it out, I am not sure if you can have them use the same volume without doing some hacky stuff with folder names though, because of the read/write conflicts you are already encountering

---

<div class="post-metadata">

**Author:** ![SudoKaKaRoty](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@SudoKaKaRoty](https://discuss.kubernetes.io/u/SudoKaKaRoty)\
**Post date:** [March 17, 2020, 9:39pm UTC](https://discuss.kubernetes.io/t/new-in-kubernetes-problem-with-mysql-deployment/10125/3 "2020-03-17T21:39:18Z")

</div>

> [@Jeroen](#):
>
> https:// kubernetes .io/docs/tasks/run-application/run-replicated-stateful-application

Thanks for you reply.

i didnt read this tutorial so i will go ahed with learn more about statefulset.
