DEV Community

Discussion on: Tips to use MySQL 8.0 on Kubernetes

Collapse
 
yoshiyukikato profile image
Yoshiyuki Kato • Edited

Thank you for kindly comment, Adrian!

I'm sorry for not so familiar with MariaDB, but as you said, I think it is able to use MariaDB as alternative to MySQL. (Note that they seem to have a few incompatibilities as shown in this page)

As you pointed out, this article is not for production but just for development. I understand that saving data in as safe place as possible is a highly important business-critial problem in production use.

I think there are two problems in different viewpoints:

  1. Pod is not stateful
  2. Storing data in cluster is not safe

The 1st one, it could be solved by using StatefulSet with persistent volume. But the 2nd one is more serious, it is a kind of disaster recovery problem. Using StatefulSet and persistent volume with heptio/ark might solve this problem, however, I think it is reasonable to use datastore outside of cluster such as full-managed services.

Collapse
 
bgadrian profile image
Adrian B.G.

Thank you for adding this info, I think that the readers that are not familiar with containers will have a treat reading it!