kubernetes-sigs / cluster-api

Home for Cluster API, a subproject of sig-cluster-lifecycle
https://cluster-api.sigs.k8s.io
Apache License 2.0
3.58k stars 1.31k forks source link

add docs about deleting specific machines when downscaling #10306

Open kranurag7 opened 7 months ago

kranurag7 commented 7 months ago

What would you like to be added (User Story)?

As an operator, I want to downscale the number of machines but I want to remove certain machines only.

Consider a case where I've 10 machines object and I want to remove only 3 specific machines.

Detailed Description

As of now, I think CAPI docs doesn't cover this part.

Ref: https://main.cluster-api.sigs.k8s.io/tasks/automated-machine-management/scaling.html#scaling-nodes

I searched in slack and found the following information.

NOTE: The annotation doesn't need a value and we can use empty string as well. "cluster.x-k8s.io/delete-machine" : ""

Anything else you would like to add?

happy to send a patch once it's triaged.

Label(s) to be applied

/kind feature /area documentation

Sunnatillo commented 7 months ago

sounds interesting, and it is valid for us a provider as well.

fabriziopandini commented 7 months ago

/triage accepted /help

@kranurag7 It will be great if you can improve https://main.cluster-api.sigs.k8s.io/tasks/automated-machine-management/scaling.html#scaling-nodes

NOTE: we have https://main.cluster-api.sigs.k8s.io/reference/labels_and_annotations, but I agree that putting all the info relevant for scaling in a single place is valuable

k8s-ci-robot commented 7 months ago

@fabriziopandini: This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to [this](https://github.com/kubernetes-sigs/cluster-api/issues/10306): >/triage accepted >/help > >@kranurag7 It will be great if you can improve https://main.cluster-api.sigs.k8s.io/tasks/automated-machine-management/scaling.html#scaling-nodes > >NOTE: we have https://main.cluster-api.sigs.k8s.io/reference/labels_and_annotations, but I agree that putting all the info relevant for scaling in a single place is valuable Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
kranurag7 commented 7 months ago

/assign

fabriziopandini commented 7 months ago

/priority backlog