From 655e2f69fb8eb4416c24b67b1dd77b7dedf65078 Mon Sep 17 00:00:00 2001 From: shirly Date: Tue, 14 Apr 2020 20:23:07 +0800 Subject: [PATCH] review and update session2/chapter1/tidb-operator-deployment-private-delete.md Signed-off-by: shirly --- .../chapter1/tidb-operator-deployment-private-delete.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/session2/chapter1/tidb-operator-deployment-private-delete.md b/session2/chapter1/tidb-operator-deployment-private-delete.md index cfd32be722..f548cb6f3c 100644 --- a/session2/chapter1/tidb-operator-deployment-private-delete.md +++ b/session2/chapter1/tidb-operator-deployment-private-delete.md @@ -2,7 +2,7 @@ 本小节演示删除名为 “test” 的 TiDB 集群。 -## 1. 通过 helm 删除 TiDB Cluster +### 1. 通过 helm 删除 TiDB Cluster ``` # helm list @@ -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 @@ -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"}}'