-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
area/documentationIssues or PRs related to documentationIssues or PRs related to documentationhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Description
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.
- https://kubernetes.slack.com/archives/C8TSNPY4T/p1605129002289200
The deletion of the machines can be controlled by an annotationcluster.x-k8s.io/delete-machine
It works for both machinedeployments and kubeadmcontrolplane objects.
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
guettli
Metadata
Metadata
Assignees
Labels
area/documentationIssues or PRs related to documentationIssues or PRs related to documentationhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.