Skip to content

Commit

Permalink
review and update session2/chapter1/tidb-operator-deployment-private-…
Browse files Browse the repository at this point in the history
…delete.md

Signed-off-by: shirly <[email protected]>
  • Loading branch information
AndreMouche committed Apr 14, 2020
1 parent de73968 commit 655e2f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions session2/chapter1/tidb-operator-deployment-private-delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

本小节演示删除名为 “test” 的 TiDB 集群。

## 1. 通过 helm 删除 TiDB Cluster
### 1. 通过 helm 删除 TiDB Cluster

```
# helm list
Expand All @@ -15,7 +15,7 @@ release "test" deleted

> **请注意**: 删除操作非常危险,请删除指定 TiDB 集群 ,千万不要误删除。
## 2. 删除 PVC
### 2. 删除 PVC

```
# kubectl delete pvc -n dba-test -l app.kubernetes.io/instance=test,app.kubernetes.io/managed-by=tidb-operator
Expand All @@ -30,7 +30,7 @@ persistentvolumeclaim "tikv-test-tikv-2" deleted

> **请注意**: 删除操作非常危险,请删除指定 TiDB 集群的 PVC ,千万不要误删除。
## 3. 删除 PV
### 3. 删除 PV

```
# kubectl get pv -l app.kubernetes.io/namespace=dba-test,app.kubernetes.io/managed-by=tidb-operator,app.kubernetes.io/instance=test -o name|xargs -I {} kubectl patch {} -p '{"spec":{"persistentVolumeReclaimPolicy":"Delete"}}'
Expand Down

0 comments on commit 655e2f6

Please sign in to comment.