From 91ba450a25a7529a97f25c9f99731105a22f6f97 Mon Sep 17 00:00:00 2001 From: BinChen Date: Wed, 2 Dec 2020 11:21:21 +0800 Subject: [PATCH] en, zh: add expected output after upgrading tidb operator (#878) --- en/upgrade-tidb-operator.md | 17 +++++++++++++++++ zh/upgrade-tidb-operator.md | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/en/upgrade-tidb-operator.md b/en/upgrade-tidb-operator.md index 4b8a44bb04..906640d134 100644 --- a/en/upgrade-tidb-operator.md +++ b/en/upgrade-tidb-operator.md @@ -40,6 +40,23 @@ This document describes how to upgrade TiDB Operator and Kubernetes. helm upgrade tidb-operator pingcap/tidb-operator --version=${version} -f ${HOME}/tidb-operator/${version}/values-tidb-operator.yaml ``` + After all the Pods start normally, execute the following command to check the image of TiDB Operator: + + {{< copyable "shell-regular" >}} + + ```shell + kubectl get po -n tidb-admin -l app.kubernetes.io/instance=tidb-operator -o yaml | grep 'image:.*operator:' + ``` + + If TiDB Operator is successfully upgraded, the expected output is as follows. `${version}` represents the desired version of TiDB Operator. + + ``` + image: pingcap/tidb-operator:${version} + image: docker.io/pingcap/tidb-operator:${version} + image: pingcap/tidb-operator:${version} + image: docker.io/pingcap/tidb-operator:${version} + ``` + > **Note:** > > After TiDB Operator is upgraded, the `discovery` deployment in all TiDB clusters will automatically upgrade to the specified version of TiDB Operator. diff --git a/zh/upgrade-tidb-operator.md b/zh/upgrade-tidb-operator.md index c6a8eddef8..4f4422f74c 100644 --- a/zh/upgrade-tidb-operator.md +++ b/zh/upgrade-tidb-operator.md @@ -39,6 +39,23 @@ aliases: ['/docs-cn/tidb-in-kubernetes/dev/upgrade-tidb-operator/'] ```shell helm upgrade tidb-operator pingcap/tidb-operator --version=${version} -f ${HOME}/tidb-operator/${version}/values-tidb-operator.yaml ``` + + Pod 全部正常启动之后,运行以下命令确认 TiDB Operator 镜像版本: + + {{< copyable "shell-regular" >}} + + ```shell + kubectl get po -n tidb-admin -l app.kubernetes.io/instance=tidb-operator -o yaml | grep 'image:.*operator:' + ``` + + 输出类似下方结果则表示升级成功,`${version}`表示要升级到的版本号。 + + ``` + image: pingcap/tidb-operator:${version} + image: docker.io/pingcap/tidb-operator:${version} + image: pingcap/tidb-operator:${version} + image: docker.io/pingcap/tidb-operator:${version} + ``` > **注意:** >