From b046f52b6d0b243494bf1cb4b5bfe2910cecd245 Mon Sep 17 00:00:00 2001 From: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Date: Wed, 13 Jan 2021 10:59:00 +0800 Subject: [PATCH] Update deploy-on-gcp-gke.md (#1037) (#1042) Signed-off-by: ti-srebot --- zh/deploy-on-gcp-gke.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/zh/deploy-on-gcp-gke.md b/zh/deploy-on-gcp-gke.md index 84413364fe2..8490e2cfd41 100644 --- a/zh/deploy-on-gcp-gke.md +++ b/zh/deploy-on-gcp-gke.md @@ -89,13 +89,24 @@ kubectl create namespace tidb-cluster ### 部署 TiDB 集群 +首先执行以下命令,下载 TidbCluster 和 TidbMonitor CR 的配置文件。 + +{{< copyable "shell-regular" >}} + +```shell +curl -O https://raw.githubusercontent.com/pingcap/tidb-operator/v1.1.9/examples/gcp/tidb-cluster.yaml && +curl -O https://raw.githubusercontent.com/pingcap/tidb-operator/v1.1.9/examples/gcp/tidb-monitor.yaml +``` + +如需了解更详细的配置信息或者进行自定义配置,请参考[配置 TiDB 集群](configure-a-tidb-cluster.md) + 执行以下命令,在 GKE 集群中部署 TidbCluster 和 TidbMonitor CR。 {{< copyable "shell-regular" >}} ```shell -kubectl create -f https://raw.githubusercontent.com/pingcap/tidb-operator/master/examples/gcp/tidb-cluster.yaml -n tidb-cluster && -kubectl create -f https://raw.githubusercontent.com/pingcap/tidb-operator/master/examples/gcp/tidb-monitor.yaml -n tidb-cluster +kubectl create -f tidb-cluster.yaml -n tidb-cluster && \ +kubectl create -f tidb-monitor.yaml -n tidb-cluster ``` 当上述 yaml 文件被应用到 Kubernetes 集群后,TiDB Operator 会负责根据 yaml 文件描述,创建对应配置的 TiDB 集群。