mysql/mysql-operator là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng Python, với 947 sao. MySQL Operator for Kubernetes
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Copyright (c) 2020, 2026, Oracle and/or its affiliates.
This is a release of MySQL Operator for Kubernetes.
License information can be found in the LICENSE file.
This distribution may include materials developed by third parties. For license
and attribution notices for these materials, please refer to the
LICENSE file.
For more information on MySQL Operator for Kubernetes visit https://dev.mysql.com/doc/mysql-operator/en/
For additional downloads and the source of MySQL Operator for Kubernetes visit https://dev.mysql.com/downloads/operator/
Contributing information for code and non-code submissions can be found in the CONTRIBUTING file.
MySQL Operator for Kubernetes is brought to you by the MySQL team at Oracle.
Introduction
The MySQL Operator for Kubernetes is an operator for managing MySQL InnoDB Cluster setups inside a Kubernetes Cluster.
It manages the full lifecycle with set up and maintenance that includes automating upgrades and backup.
MySQL Operator for Kubernetes is brought to you by the MySQL team at Oracle.
Issues and Pull Requests
As with all MySQL projects, issues (including bugs and feature requests) are tracked here:
https://bugs.mysql.com/
Pull requests submitted via github are also tracked at bugs.mysql.com; see CONTRIBUTING for related information.
MySQL Operator for Kubernetes Installation
Using Manifest Files with kubectl
First deploy the Custom Resource Definition (CRDs):
This deploys the latest MySQL Operator for Kubernetes from DockerHub using all defaults; although the deployment
can be customized through a variety of options to override built-in defaults. The name of the deployment is
mysql-operator. See the documentation for details.
In this release, operator topology is frozen after the initial topology has been persisted on first
startup. A global operator blocks every other operator install, scoped operators must keep a disjoint
deployment.namespaces set, and later manual or raw-manifest topology changes are rejected on operator
startup. Choose deployment.namespaces and deployment.standalone up front; changing them after bootstrap
requires removing the operator and reinstalling it with the desired scope.
MySQL InnoDB Cluster Installation
Using kubectl
For creating a MySQL InnoDB Cluster, first create a secret with credentials for a MySQL root user used to
perform administrative tasks in the cluster. For example:
A MySQL InnoDB Cluster Service is created inside the Kubernetes cluster:
$> kubectl get service mycluster
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
mycluster ClusterIP 10.110.228.51 <none> 3306/TCP,33060/TCP,6446/TCP,6448/TCP,6447/TCP,6449/TCP,6450/TCP 26h
The ports represent read-write and read-only ports for the MySQL Protocol and the X Protocol.
Use describe or see the documentation for additional information.
Using MySQL Shell
This example creates a new container named myshell using the container-registry.oracle.com/mysql/community-operator image, and immediately executes MySQL Shell:
$> kubectl run --rm -it myshell --image=container-registry.oracle.com/mysql/community-operator -- mysqlsh
If you don't see a command prompt, try pressing enter.
MySQL JS> \connect root@mycluster
Creating a session to 'root@mycluster'
Please provide the password for 'root@mycluster': ******
MySQL mycluster JS>
Using root@mycluster connection assumes the default namespace is used; the long form is {innodbclustername}.{namespace}.svc.cluster.local.
Each MySQL instance has MySQL Shell installed that can be used when troubleshooting.
Using Port Forwarding
Kubernetes port forwarding creates a redirection from your local machine to use a MySQL client, such as mysql or MySQL Workbench.
For example, for read-write connection to the primary using the MySQL protocol:
$> kubectl port-forward service/mycluster mysql
Forwarding from 127.0.0.1:3306 -> 6446
Forwarding from [::1]:3306 -> 6446
And in a second terminal:
$> mysql -h127.0.0.1 -P3306 -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
...
When prompted, enter the password used when creating the Secret.
More Information
Refer to the official documentation at:
https://dev.mysql.com/doc/mysql-operator/en/
For additional downloads and the source code, visit:
https://dev.mysql.com/downloads
https://github.com/mysql/mysql-operator
Contributing to MySQL Operator for Kubernetes, see:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/mysql/mysql-operator là nguồn chính thức.
mysql/mysql-operator có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho mysql/mysql-operator. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
mysql/mysql-operator là gì?
mysql/mysql-operator (mysql/mysql-operator) là dự án Python trên GitHub. Theo mô tả gốc: MySQL Operator for Kubernetes
Đọc đầy đủ README ở tab phía trên.
Chưa chắc mysql-operator có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về mysql-operator.