From 11ca53b11909f30079608aa67ce1a6d9f9ee5301 Mon Sep 17 00:00:00 2001 From: weekface Date: Thu, 12 Sep 2019 16:22:20 +0800 Subject: [PATCH 1/2] hint user to set pv reclaim policy to retain in production environment --- charts/tidb-cluster/values.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/tidb-cluster/values.yaml b/charts/tidb-cluster/values.yaml index e94411a66e..84011d78e7 100644 --- a/charts/tidb-cluster/values.yaml +++ b/charts/tidb-cluster/values.yaml @@ -20,7 +20,9 @@ schedulerName: tidb-scheduler # timezone is the default system timzone for TiDB timezone: UTC -# default reclaim policy of a PV +# reclaim policy of a PV, default: Retain. +# you must set it to Retain to ensure data security in production environment. +# https://pingcap.com/docs/v3.0/tidb-in-kubernetes/reference/configuration/local-pv/#data-security pvReclaimPolicy: Retain # services is the service list to expose, default is ClusterIP From e8cad32851806a0036455dca70a40d542e027371 Mon Sep 17 00:00:00 2001 From: weekface Date: Mon, 23 Sep 2019 15:31:02 +0800 Subject: [PATCH 2/2] Update charts/tidb-cluster/values.yaml Co-Authored-By: Tennix --- charts/tidb-cluster/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/tidb-cluster/values.yaml b/charts/tidb-cluster/values.yaml index 84011d78e7..7446971dac 100644 --- a/charts/tidb-cluster/values.yaml +++ b/charts/tidb-cluster/values.yaml @@ -21,7 +21,7 @@ schedulerName: tidb-scheduler timezone: UTC # reclaim policy of a PV, default: Retain. -# you must set it to Retain to ensure data security in production environment. +# you must set it to Retain to ensure data safety in production environment. # https://pingcap.com/docs/v3.0/tidb-in-kubernetes/reference/configuration/local-pv/#data-security pvReclaimPolicy: Retain