elastisys / compliantkubernetes-kubespray

Apache License 2.0
26 stars 7 forks source link

Investigate using ReclaimSpaceCronJob for rook #327

Open Xartos opened 8 months ago

Xartos commented 8 months ago

What should be investigated. What technology/product/concept should be investigated?

Right now we have a systemd unit with a timer that runs on all nodes for reclaiming space. I just found that rook supports a CSI addon job that I think will do the same thing https://github.com/csi-addons/kubernetes-csi-addons/blob/v0.7.0/docs/reclaimspace.md

You'll need to deploy a addon controller to be able to enable this feature if I understand it correctly https://rook.io/docs/rook/v1.12/Storage-Configuration/Ceph-CSI/ceph-csi-drivers/#csi-addons-controller

So it would be interesting to see if we could replace the systemd unit with this cronjob instead

What artifacts should this produce. How should the knowledge gathered from this task be captured.