Add etcdctl defrag
Functionality to k0s etcd
Subcommand
#4970
Labels
enhancement
New feature or request
etcdctl defrag
Functionality to k0s etcd
Subcommand
#4970
Is your feature request related to a problem? Please describe.
The k0s cluster we use at work has already become significantly fragmented, despite being only 111 days old.
Currently, running etcdctl defrag is cumbersome, as it requires manually installing the tool, shutting down the k0s control plane, performing the defrag, and then restarting it—this has to be repeated for all 5 control plane nodes.
It would be fantastic if the k0s etcd subcommand could integrate this functionality, as defragmentation seems to be a common maintenance task when using etcd.
Describe the solution you would like
The k0s etcd subcommand should provide access to the etcdctl defrag functionality. When running this command, it should first verify that the k0s control plane is stopped on the node before proceeding with the defragmentation. This would automate the process and ensure that the defrag is safely executed on each node.
Additionally, this could be integrated with k0sctl to run k0s etcd defrag across all nodes in the cluster, further simplifying cluster-wide defragmentation.
Describe alternatives you've considered
If integrating this functionality into k0s is not feasible or adds unnecessary complexity, a suitable alternative would be to provide detailed documentation on how to perform defragmentation with k0s manually.
Additional context
No response
The text was updated successfully, but these errors were encountered: