Cloud Native 4 min read

How RadonDB MySQL Operator Simplifies MySQL Deployment on Kubernetes

This article introduces the RadonDB MySQL Operator, explaining its design goals, deployment topology on Kubernetes, detailed architecture—including RBAC, manager, custom resources, and services—and provides a visual overview to help engineers simplify MySQL high‑availability deployments in cloud‑native environments.

Qingyun Technology Community
Qingyun Technology Community
Qingyun Technology Community
How RadonDB MySQL Operator Simplifies MySQL Deployment on Kubernetes

Background

With the maturity of cloud‑native technologies, the demand for running MySQL on Kubernetes (K8s) is increasing. Deploying MySQL on K8s reduces operational complexity and improves resource utilization.

This series uses the RadonDB MySQL Operator as an example to show how to design and implement an operator based on a proven MySQL high‑availability solution.

Design Goals

The goal is to enable RadonDB MySQL to run in Operator mode, supporting installation, deployment, and management on Kubernetes and KubeSphere, and automatically performing tasks related to a RadonDB MySQL cluster.

MySQL on K8s Deployment Topology

The topology consists of two parts: a MySQL primary‑replica cluster and a Xenon management cluster that implements the Raft leader election protocol. Each Pod contains MySQL, Xenon, Slowlog, and Metrics containers; Xenon manages the MySQL instance inside the Pod.

MySQL on K8s architecture topology
MySQL on K8s architecture topology

Each Pod role diagram (main containers only):

Pod role diagram
Pod role diagram

RadonDB MySQL Operator Architecture

In Kubernetes, an Operator is a combination of a Custom Resource Definition (CRD) and a controller.

Operator architecture
Operator architecture

Operator component design:

Role management (RBAC): uses kube‑rbac‑proxy to interact with the Kubernetes API for RBAC authentication.

Manager: a set of custom controllers, including the most important controller that creates/updates RadonDB MySQL clusters via Custom Resources.

Custom Resources: describe the basic information for building a RadonDB MySQL cluster.

Service: provides read‑write separation with a Leader Service for read‑write traffic and a Follower Service for read‑only traffic, plus ServiceAccount and Headless Service for stable virtual IPs.

Conclusion

The overview above presents the RadonDB MySQL Operator architecture and design thinking. The next article will dive into source‑code analysis, covering scaffold selection, cluster Spec definition, and Status definition.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

databaseKubernetesOperatorMySQL
Qingyun Technology Community
Written by

Qingyun Technology Community

Official account of the Qingyun Technology Community, focusing on tech innovation, supporting developers, and sharing knowledge. Born to Learn and Share!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.