Kubernetes [recomends](https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#maintaining-etcd-clusters) using etcd-defrag to run defragmentation of the cluster. Since this is expensive operation this tool allows to specify specific rule, eg: ``` dbQuotaUsage > 0.8 || dbSize - dbSizeInUse > 200*1024*1024 ``` https://github.com/ahrtr/etcd-defrag/blob/main/doc/etcd-defrag-cronjob.yaml This is slightly diferent from kamaji-etcd implementation https://github.com/clastix/kamaji-etcd/blob/433989a4badeb8edc0925cfc671fb0cc66448e66/charts/kamaji-etcd/templates/etcd_cronjob_defrag.yaml#L11 In Cozystack we currnelty added it into Helm chart: https://github.com/aenix-io/cozystack/pull/137/files#diff-0dcf3889fea1c88eb22a0d84208697a4ed71c8cb111d1d29ec714a71529d5822
Kubernetes recomends using etcd-defrag to run defragmentation of the cluster.
Since this is expensive operation this tool allows to specify specific rule, eg:
https://github.com/ahrtr/etcd-defrag/blob/main/doc/etcd-defrag-cronjob.yaml
This is slightly diferent from kamaji-etcd implementation
https://github.com/clastix/kamaji-etcd/blob/433989a4badeb8edc0925cfc671fb0cc66448e66/charts/kamaji-etcd/templates/etcd_cronjob_defrag.yaml#L11
In Cozystack we currnelty added it into Helm chart:
https://github.com/aenix-io/cozystack/pull/137/files#diff-0dcf3889fea1c88eb22a0d84208697a4ed71c8cb111d1d29ec714a71529d5822