pingcap / tidb-operator

TiDB operator creates and manages TiDB clusters running in Kubernetes.
https://docs.pingcap.com/tidb-in-kubernetes/
Apache License 2.0
1.22k stars 489 forks source link

API support for the PD/TiDB/TiKV components #3281

Open DanielZhangQD opened 3 years ago

DanielZhangQD commented 3 years ago

Feature Request

Is your feature request related to a problem? Please describe:

Some users want the TiDB Operator to support the API operations of PD/TiDB/TiKV so that they do not need to use pd-ctl, tikv-ctl, etc. to interact with the core components, especially for a unique platform that manages all of the applications running in Kubernetes with GUI, it's not user friendly to run pd-ctl, tikv-ctl, etc. Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

mikechengwei commented 3 years ago

GUI is difficult.I think we can use declarative API to do some maintenance operations instead of pd-ctl,tikv-ctl,etc. We can add event mechanism to handle maintenance operation ,due to maintenance operations can only consume once. For example, i need to delete tikv store by using pd-ctl delete store id. By operator, i can write

pd:
   event:
     store:
        delete: 1

Operator will consume this event , and generate event message , operator not need to persist events.