From 6a504485a682da74c4137fd29aba7b348615e652 Mon Sep 17 00:00:00 2001 From: YZ775 Date: Mon, 6 Jan 2025 04:48:16 +0000 Subject: [PATCH] Enabling etcd data corruption detection --- op/etcd/common.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/op/etcd/common.go b/op/etcd/common.go index 894c43bee..251505cbc 100644 --- a/op/etcd/common.go +++ b/op/etcd/common.go @@ -68,6 +68,11 @@ func BuiltInParams(node *cke.Node, initialCluster []string, state string) cke.Se // https://groups.google.com/a/kubernetes.io/g/dev/c/B7gJs88XtQc/m/rSgNOzV2BwAJ // This flag can detect an inconsistency. "--experimental-initial-corrupt-check", + + // Enabling data corruption detection + // https://etcd.io/docs/v3.5/op-guide/data_corruption/ + "--experimental-compact-hash-check-enabled=true", + "--experimental-corrupt-check-time=3h", } if len(initialCluster) > 0 { args = append(args,