Hibernate clusters instead deleting them #613
Labels
area/control-plane
Related to all activities around Kyma Control Plane
kind/feature
Categorizes issue or PR as related to a new feature.
Description
Instead of deleting a Kyma runtime directly when RuntimeCRs get deleted, we should suspend the Gardener cluster and set the Runtime-CR to disposed. The final deletion request happens delayed via housekeeping logic (either by a separate job or during the time-base reconciliation of all
Runtime
CRs).This feature has to cope with several circumstances:
How to behave with failing Hibernation of a cluster :
If this is not solving the hanging hibernation, KIM forces the deletion of the cluster after a few hours (timeout: 2 hours).
A new state in RuntimeCR is required (e.g. disposed)
For proper billing, we should start supporting new fields in RuntimeCR which indicate when a cluster was provisioned and its deletion requested (see Transition from KEB API to KIM Runtime CR kyma-metrics-collector#89 )
A housekeeping job required to deleted disposed cluster when retention period is reached
AC:
disposed
status triggering a hibernation of a cluster.disposed
and are marked to be non-billable (see KIM has to mark the RuntimeCR to be billable #547)disposed
mode and have reached a pre-defined retention time (e.g. 3 days) are finally deleted in GardenerReasons
Support manual cluster recovery and address risk of unintended deleted Kyma runtimes (either by customers, SAP employees or by a software bug).
Attachments
The text was updated successfully, but these errors were encountered: