简体   繁体   中英

Is it recommended to deploy MySQL database in kubernetes with one pod or more pods in production?

Is it recommended to deploy MySQL database in kube.netes with one pod or more pods in the production?

What are the advantages and disadvantages if we deploy MySQL database k8s production.

  1. Should we have only one pod with persistent volume.
  2. is any chances to have issue with data read and write when we use multiple MySQL pods in production.

Having one database pod in production would lead to single point of failure. You need to deploy the database with high availability using multiple replicas and automatic failover if you consider running databases in kube.netes. good to add database backup and restore features to the pod image for recovery purpose in case the database needs to be restored from an old backup copy.

consider the below helm charts for mysql deployment in kube.netes container platform https://github.com/bitnami/charts/tree/master/bitnami/mysql

https://github.com/bitnami/charts/tree/master/bitnami/mariadb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM