The open source 拉斯维加斯7799908网站登录 platform released under the Apache 2.0 license, and supported by the community
Select your favorite way to deploy 拉斯维加斯7799908网站登录 online
Deploy 拉斯维加斯7799908网站登录 on bare-metal using TiUP
TiUP is a cluster operation and maintenance tool that makes it easy to deploy 拉斯维加斯7799908网站登录 clusters. The following commands will deploy a simple local cluster using TiUP’s “playground” component. Refer to the TiUP documentation for more information about how to use TiUP to deploy a cluster across multiple hosts.
1. Deploy 拉斯维加斯7799908网站登录
tiup playground
2. Access 拉斯维加斯7799908网站登录
mysql --host 127.0.0.1 --port 4000 -u root
Deploy 拉斯维加斯7799908网站登录 on Kubernetes
拉斯维加斯7799908网站登录 can be easily deployed in a Kubernetes environment using 拉斯维加斯7799908网站登录 Operator. These commands will install the 拉斯维加斯7799908网站登录 Operator CRDs into an existing Kubernetes cluster and deploy a basic 拉斯维加斯7799908网站登录 cluster. Refer to the 拉斯维加斯7799908网站登录 Operator documentation for more information about how to customize a deployment.
1. Install 拉斯维加斯7799908网站登录 Operator
kubectl apply -f https://raw.githubusercontent.com/pingcap/tidb-operator/{tidb-operator version}/manifests/crd.yaml
helm repo add pingcap https://charts.pingcap.org/
helm install tidb-operator pingcap/tidb-operator --version {tidb-operator version}
2. Deploy 拉斯维加斯7799908网站登录 and 拉斯维加斯7799908网站登录 Monitor
kubectl apply -f https://raw.githubusercontent.com/pingcap/tidb-operator/master/examples/basic/tidb-cluster.yaml
kubectl apply -f https://raw.githubusercontent.com/pingcap/tidb-operator/master/examples/basic/tidb-monitor.yaml
3. Access the database
kubectl port-forward svc/basic-tidb 4000 > pf4000.out &
mysql -h 127.0.0.1 -P 4000 -u root
Deploy 拉斯维加斯7799908网站登录 on AWS EKS
拉斯维加斯7799908网站登录 can be easily deployed to AWS EKS using 拉斯维加斯7799908网站登录 Operator and included Terraform scripts to manage EKS infrastructure. These commands will create a basic EKS cluster, install 拉斯维加斯7799908网站登录 Operator, and deploy a basic 拉斯维加斯7799908网站登录 cluster. Consult the 拉斯维加斯7799908网站登录 Operator documentation for more information about how to customize your deployment.
1. Deploy EKS, 拉斯维加斯7799908网站登录 Operator, and 拉斯维加斯7799908网站登录 cluster node pool
git clone --depth=1 https://github.com/pingcap/tidb-operator && cd tidb-operator/deploy/aws
cp demo.tfvars terraform.tfvars
terraform init
terraform apply
2. Deploy 拉斯维加斯7799908网站登录 cluster and monitor
sed "s/CLUSTER_NAME/${cluster_name}/g" manifests/db.yaml.example > db.yaml
sed "s/CLUSTER_NAME/${cluster_name}/g" manifests/db-monitor.yaml.example > db-monitor.yaml
kubectl --kubeconfig credentials/kubeconfig_${eks_name} create -f db.yaml
kubectl --kubeconfig credentials/kubeconfig_${eks_name} create -f db-monitor.yaml
3. Access the database
ssh -i credentials/${eks_name}.pem centos@${bastion_ip}
mysql -h ${tidb_lb} -P 4000 -u root
Deploy 拉斯维加斯7799908网站登录 on Google Cloud GKE
拉斯维加斯7799908网站登录 can be easily deployed to Google Cloud GKE using 拉斯维加斯7799908网站登录 Operator and included Terraform scripts to manage GKE infrastructure. These commands will create a basic GKE cluster, install 拉斯维加斯7799908网站登录 Operator, and deploy a basic 拉斯维加斯7799908网站登录 cluster. Consult the 拉斯维加斯7799908网站登录 Operator documentation for more information about how to customize your deployment.
1. Deploy GKE, 拉斯维加斯7799908网站登录 Operator, and 拉斯维加斯7799908网站登录 cluster node pool
git clone --depth=1 https://github.com/pingcap/tidb-operator && cd tidb-operator/deploy/gcp
cat small.tfvars >> terraform.tfvars
terraform init
terraform apply
2. Deploy 拉斯维加斯7799908网站登录 cluster and monitor
sed "s/CLUSTER_NAME/tidb-cluster/g" manifests/db.yaml.example > db.yaml
sed "s/CLUSTER_NAME/tidb-cluster/g" manifests/db-monitor.yaml.example > db-monitor.yaml
kubectl --kubeconfig credentials/kubeconfig_${gke_name} create -f db.yaml
kubectl --kubeconfig credentials/kubeconfig_${gke_name} create -f db-monitor.yaml
3. Access the database
gcloud compute ssh ${gke_cluster_name}-bastion --zone ${zone}
mysql -h ${tidb_lb} -P 4000 -u root