Member-only story
How to Run Databases in Kubernetes
Introduction
If you are not new to Kubernetes, probably you heard this a million times: “Do not run databases on Kubernetes!”; and if you were in 2016 that may be true, but not anymore; in fact, I would go as far as saying that Kubernetes is now the best platform to run stateful workloads.
In this article, I will try to change your mind about running stateful workloads in Kubernetes and try to convince you that in many cases, it is the best approach that you can take. I will also talk about different alternatives and when not to run databases in Kubernetes.
The article is divided in two parts, the first one focuses on how to run database in Kubernetes and the second one focuses on when you should run databases in Kubernetes.
Let’s begin with a quick history lesson and then we will dive into the uses cases.
Brief History
Although many recruiters sometimes ask for engineers with more than 10 years of experience; Kubernetes 1.0 was released in 2015. It was created by Google and released as open source under the Cloud Native Computing Foundation.
It gained popularity thanks to the rise of cloud computing and cloud native applications. Its adoption increased exponentially over the years and nowadays Kubernetes is the…