- Deploy TiDB Cluster
- Deploy a TiDB Cluster across Multiple Kubernetes Clusters
- Deploy Heterogeneous Cluster
- Deploy TiFlash
- Deploy TiCDC
- Deploy TiDB Binlog
- Deploy TiDB Enterprise Edition
- Deploy Multiple Sets of TiDB Operator
- Migrate TiDB to Kubernetes
- Upgrade TiDB Cluster
- Upgrade TiDB Operator
- Perform a Canary Upgrade
- Pause Sync of TiDB Cluster
- Backup and Restore
- Backup and Restore with S3-Compatible Storage
- Backup and Restore with GCS
- Backup and Restore with Persistent Volumes
- Disaster Recovery
- Release Notes
TiDB Operator is an automatic operation system for TiDB clusters in Kubernetes. It provides a full management life-cycle for TiDB including deployment, upgrades, scaling, backup, fail-over, and configuration changes. With TiDB Operator, TiDB can run seamlessly in the Kubernetes clusters deployed on a public or private cloud.
The corresponding relationship between TiDB Operator and TiDB versions is as follows:
|TiDB Operator version||Compatible TiDB versions|
|v1.1||v3.0, v3.1, v4.0, v5.0|
|v1.2||v3.0 and later releases|
|dev||v3.0 and later releases, dev|
TiDB Operator provides several ways to deploy TiDB clusters in Kubernetes:
For test environment:
- Get Started using kind, Minikube, or the Google Cloud Shell
For production environment:
In an existing Kubernetes cluster:
You also need to adjust the configuration of the Kubernetes cluster based on Prerequisites for TiDB in Kubernetes and configure the local PV for your Kubernetes cluster to achieve low latency of local storage for TiKV according to Local PV Configuration.
Before deploying TiDB on any of the above two environments, you can always refer to TiDB Cluster Configuration Document to customize TiDB configurations.
After the deployment is complete, see the following documents to use, operate, and maintain TiDB clusters in Kubernetes:
- Access the TiDB Cluster
- Scale TiDB Cluster
- Upgrade TiDB Cluster
- Change the Configuration of TiDB Cluster
- Back up and Restore a TiDB Cluster
- Automatic Failover
- Monitor a TiDB Cluster in Kubernetes
- View TiDB Logs in Kubernetes
- Maintain Kubernetes Nodes that Hold the TiDB Cluster
When a problem occurs and the cluster needs diagnosis, you can:
- See TiDB FAQs in Kubernetes for any available solution;
- See Troubleshoot TiDB in Kubernetes to shoot troubles.
TiDB in Kubernetes provides a dedicated command-line tool
tkctl for cluster management and auxiliary diagnostics. Meanwhile, some of TiDB's tools are used differently in Kubernetes. You can:
- See Tools in Kubernetes to understand how TiDB tools are used in Kubernetes.
Finally, when a new version of TiDB Operator is released, you can refer to Upgrade TiDB Operator to upgrade to the latest version.