Member-only story

How to Run Databases in Kubernetes

Javier Ramos
ITNEXT
Published in
20 min readSep 3, 2022

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.

Photo by Venti Views on Unsplash

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

--

--

Published in ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Written by Javier Ramos

Certified Java Architect/AWS/GCP/Azure/K8s: Microservices/Docker/Kubernetes, AWS/Serverless/BigData, Kafka/Akka/Spark/AI, JS/React/Angular/PWA @JavierRamosRod

Responses (4)

Write a response