Tidb-operator creates/configures/manages tidb clusters atop Kubernetes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark bugfix: start grafama shell Sep 6, 2017
cmd/tidb-gc
docker upgrade tidb cluster version to pre-ga Sep 21, 2017
garbagecollection Optimize tidb cluster schedule Sep 4, 2017
kubernetes upgrade tidb cluster version to pre-ga Sep 21, 2017
operator upgrade tidb cluster version to pre-ga Sep 21, 2017
pkg bugfix create crd Sep 5, 2017
swagger bugfix:swagger Aug 3, 2017
test upgrade tidb cluster version to pre-ga Sep 21, 2017
vendor Introduce distributed locks Sep 6, 2017
.gitattributes Specifies the table to be migrated Jul 26, 2017
.gitignore bugfix: reconcle pd cluster Aug 21, 2017
Dockerfile add tidb-operator dockerfile_lite and deploy shell Jun 29, 2017
Makefile upgrade tidb cluster version to pre-ga Sep 21, 2017
README.md Introduce distributed locks Sep 6, 2017
glide.lock
glide.yaml migrate metadata to configmap Aug 29, 2017
logs merge commit logs Jul 26, 2017
main.go Introduce distributed locks Sep 6, 2017
restart.sh bugfix Aug 25, 2017

README.md

Tidb-operator

tidb-operator manage multiple tidb cluster atop Kubernetes, support multi-tenant, and online scale up or dowm, rolling upgrades, multiple disk mount points, full / incremental migrate data to tidb cluster, all operations web.

Note: Currently only support kubernetes version is 1.7, all port ranges [10000-15000). Only provide restful api, easy to integrate into the existing web frame.

Build images

Build all docker images and push to your private docker registry, default version is latest:

make build && make push

Preparedness

Install kubernetes if have already installed, skip this step

Note: Due to GFW reasons, some installation packages and images can not be obtained, you need to download to the local upload to the specified server and then install. See: kubernetes ./kubernetes/deploy directory.

Access kubernetes dashboard: http://<NodeIP>:10281

Download source code to loacal

Git clone the project to $GOPATH/src/github/ffan dir

Deploy prometheus/grafana on kubernetes

make install-grafana # run this shell on kubernetes master

Access grafana: http://<NodeIP>:12802, user&password is admin/admin.

Startup tidb-operator

To start on kubernetes cluster

make install-tidb-operator # run this shell on kubernetes master

Development

cd ./operator && ln -s swagger ../swagger # ln swagger to `./tidb-operator`
# beego, set the kubenetes API server endpoint before running,
# for example `export K8S_ADDRESS=http://10.213.131.54:10218` or midify restart.sh
bee run -downdoc=true
# or
./restart.sh

Access endpoint: http://127.0.0.1:12808/swagger