Skip to content

Commit

Permalink
Enabling etcd data corruption detection
Browse files Browse the repository at this point in the history
  • Loading branch information
YZ775 committed Jan 6, 2025
1 parent 9fe3042 commit 6a50448
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions op/etcd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6a50448

Please sign in to comment.