Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded resources upon etcd-cluster scaling down to 0 #860

Open
unmarshall opened this issue Aug 19, 2024 · 0 comments
Open

Remove unneeded resources upon etcd-cluster scaling down to 0 #860

unmarshall opened this issue Aug 19, 2024 · 0 comments
Assignees
Labels
area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension

Comments

@unmarshall
Copy link
Contributor

How to categorize this issue?

/area control-plane
/kind enhancement

What would you like to be added:
When an etcd cluster is scaled down to 0 then we do the following changes to the resources in the etcd cluster:

  1. All pods are deleted - this is expected.
  2. PVC's are preserved - this we now tackle via Optimize costs on cluster hibernation #859.
  3. Member & Snapshot leases are preserved with now stale information - this is unexpected.
  4. Client and Peer service are preserved - this is unexpected.
  5. ServiceAccount, role and role-bindings are preserved - should we retain these?
  6. ConfigMap is updated to reflect the current state of the etcd cluster - while the update is expected, do we need the CM?
  7. PDB is updated and now has a minAvailable set to 0 - while the update is expected, do we need the PDB?

We should ensure that all resources that are not needed any longer should be removed as well once the etcd cluster is scaled down to 0. If and when the etcd cluster is scale up again, these resources will be created again.

Why is this needed:
To bring harmony across all resource states that are created for a etcd cluster. Today we have mixed behavior.

@gardener-robot gardener-robot added area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension
Projects
None yet
Development

No branches or pull requests

3 participants