Skip to content

Commit

Permalink
en, zh: add expected output after upgrading tidb operator (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
BinChen authored Dec 2, 2020
1 parent e2a472b commit 91ba450
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions en/upgrade-tidb-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 17 additions & 0 deletions zh/upgrade-tidb-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
```

> **注意:**
>
Expand Down

0 comments on commit 91ba450

Please sign in to comment.