---
title: Is your database on Kubernetes production-ready?
description: Today, most organisations want to run databases as a stateful workload.
  Kubernetes can cater for this requirement. Charmhub.io has published multiple database
  operators (called charms) that run on Kubernetes
url: https://canonical.com/blog/database-on-kubernetes?format=md
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Michelle Anne Tabirao](https://canonical.com/blog/author/mtabirao "More about Michelle Anne Tabirao")

10 June 2022

# Is your database on Kubernetes production-ready?

[data](https://canonical.com/blog/tag/data)
[data platform](https://canonical.com/blog/tag/data-platform)
[Database](https://canonical.com/blog/tag/database)
[kubernetes](https://canonical.com/blog/tag/kubernetes)
[NoSQL](https://canonical.com/blog/tag/nosql)

---

Share the article

Last May, [KubeCon](https://ubuntu.com/blog/kubecon-2022-europe) gathered multiple tech enthusiasts, students, professionals, and companies. The event highlighted various topics and insights on how to collaborate on pushing the boundaries of cloud-native computing.

One of our Engineering Directors, Mykola Marzhan, shared his knowledge about databases on Kubernetes at KubeCon, during a session organised by the [DoK.Community](https://dok.community/). We’ve picked out some of the key highlights from the talk below.

#### Watch the online session

## Why use Kubernetes to run databases?

Organisations want to build and run scalable database applications in public, private and hybrid environments. There are multiple pros and cons to running database applications in Virtual Machines (VMs), Database as a Service (DBaaS) and Kubernetes. Versus VMs and DBaaS, running a database on Kubernetes has benefits in portability, avoiding vendor lock-in, DevOps friendliness, scalability and cost-effectiveness

Today, most organisations want to run databases as a stateful workload. Kubernetes can cater for this requirement.

[Charmhub.io](https://charmhub.io/) has published multiple database operators (called charms) that run on Kubernetes, including Redis, Cassandra, PostgreSQL, etc. A charm is a database operator running in Kubernetes as an application package with all the operational knowledge required to install, maintain and upgrade it on a Kubernetes cluster. A charm can also integrate with other applications and charms.

## Checklist for a production-ready database on Kubernetes

Organisations deploy multiple applications for their business operations, often including databases. Deploying database clusters faster and confidently is necessary for an organisation’s technological landscape.  Having a production-ready and automated setup helps you improve the customer experience and mitigate operational risks.

Consider this checklist before running production database workloads on Kubernetes:

### High Availability

The database should be highly available, as this is usually pretty important for the organisation’s continuity. High Availability (HA) is a system characteristic that aims to ensure an agreed level of operational performance, typically uptime, during a standard period. Therefore, the right design and implementation of HA is critical for organisations and should be a key focus area.

In order to consider a database production-ready, it must also have a strategy for achieving a defined Recovery Point Objective (RPO) and  Recovery Time Objective (RTO). Such strategy should include automatic failover without data loss with switching traffic from old primary to new primary, automation of a one-member and full-cluster crash recovery, cross-region and/or cross-cluster replication, health and readiness checks, etc.

### Security

A database can hold confidential, sensitive, or protected information, making it a prime target for cyberattacks. Therefore, the basic security requirement such as user authentication and authorisation is essential and should be enabled by default. In addition, semi-automatic updates, network security, encryption in transit and encryption at rest can be implemented.

### Deployment Readiness

Deployment readiness is also vital for database production. There are multiple considerations here: schema setup, vertical and horizontal scalability, ability to deploy offline, database plugins, customisation and configuration of the database, various versions support, local storage support and many more. Learn more by watching  [Mykola’s talk](https://www.youtube.com/watch?v=UmtZyAl2DWQ).

### Backup  and Restore

This section was not mentioned in the talk but is very important for any production database cluster to implement backup and restore. Here is the list to consider:

* Backup to another region
* Backup compression
* Backup encryption with external encryption key storing
* Partial restoration
* Consistent backup of multi-shard clusters
* Point-in-Time Recovery – Possibility to make recovery to any transaction

### Monitoring

A production database should be monitored appropriately. This can be implemented by having logs, query analytics, host and database metrics. In addition, appropriate alerting rules and notification channels must be in place.

## Conclusion

Running database clusters in public, private and hybrid environments gives you multiple benefits. Kubernetes provides the additional advantages of portability, no vendor lock-in, DevOps friendliness, scalability and cost-effectiveness.

## Canonical data solutions

### Canonical charmed database operator

Canonical develops multiple open-source operators so developers can
confidently and efficiently run databases on Kubernetes in a production
environment. These products are featured on [Charmhub.io](https://charmhub.io/). Canonical also offers two CNCF-certified Kubernetes distributions: [Charmed Kubernetes](https://charmhub.io/) and [MicroK8s](https://microk8s.io/), which help simplify and accelerate the deployment of Kubernetes.

### Data Fabric Solutions

Simplify your database operations with Canonical. Offload security
and maintenance so you can focus on getting value from your data.
Canonical offers enterprise support for data applications such as [MongoDB](https://ubuntu.com/data/mongodb), [OpenSearch](https://ubuntu.com/data/opensearch), [Spark](https://ubuntu.com/data/spark) and [Kafka](https://ubuntu.com/data/kafka).
Secure and scale your open-source data applications – [Contact Canonical](https://ubuntu.com/data/mongodb#get-in-touch).

### Ubuntu Pro + Support

Get your data solutions secured with Canonical and Ubuntu .The [Ubuntu Pro](https://ubuntu.com/pro) license provides security patching for critical and high-severity Common Vulnerabilities and Exposures (CVEs)  with ten years of security maintenance. In addition  to this, we offer direct 24/7 access to a world-class, enterprise open source support team through our web portal, knowledge base or by phone.

### Consulting Services

Our team of database experts is here to help you get started with your data solution, providing guidance for new  projects design and deployment, along with migration strategy and planning for existing databases.

.

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

By submitting this form, I confirm that I have read and agree to [Canonical's Privacy Policy](https://canonical.com/legal/dataprivacy).

Sign up

## Share on

---

## Related posts

[### How to set up a micro lab: four principles for a reliable homelab](https://canonical.com/blog/how-to-set-up-a-reliable-homelab)

After over a decade of running a homelab, I have learned a few difficult lessons. Although it begins as a “lab,” you inevitably end up with something you want to keep. If a...

[Jake Nabasny](https://canonical.com/blog/author/slapcat)

17 March 2026

[### SQL Server 2025 is generally available on Ubuntu 24.04 LTS](https://canonical.com/blog/sql-server-2025-ubuntu-24-04-lts)

Microsoft has announced the General Availability of SQL Server 2025 on Ubuntu 24.04 LTS. Learn about the new CU1 features, including OS-level observability, Contained...

[Jehudi](https://canonical.com/blog/author/jota-ce)

6 February 2026

[### Deploy your Spring Boot application to production](https://canonical.com/blog/deploy-spring-application-to-production)

In this article we walk through the steps required to deploy a Spring Boot application to production using Juju and Kubernetes. The goal is to showcase the integration of the...

[Javier de la Puente](https://canonical.com/blog/author/javierdelapuente)

13 January 2026

[### Harnessing the potential of 5G with Kubernetes: a cloud-native telco transformation perspective](https://canonical.com/blog/harnessing-the-potential-of-5g-with-kubernetes-a-cloud-native-telco-transformation-perspective)

Telecommunications networks are undergoing a cloud-native revolution. 5G promises ultra-fast connectivity and real-time services, but achieving those benefits requires an...

[Benjamin Ryzman](https://canonical.com/blog/author/benjaminryzman)

10 December 2025
