From 7f64b35d320c93c2dbea8d33687432c2be4ae035 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 b8bb86f9f4..553e269905 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 c9a375c2901ecc6371f4b97a3462078fe2a521e5 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 e52f3f88b6..b3ff292ec3 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