-
Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
-
Product / Portfolio Work
-
None
-
False
-
-
None
-
None
-
None
-
-
None
-
None
-
None
-
None
-
None
Proposed title of this feature request
Create new annotation to not scale down nodepool machines in HCP
2. What is the nature and description of the request?
It is possible to use annotation to select which node to be deleted like the following:
- Patch the machine with the help of below command:
$ oc annotate machine <machine-name> cluster.x-k8s.io/delete-machine="" -n <namespace-name> - Reduce the nodepool replicas to required replicas. Run the command on the hosting cluster.
$ oc scale nodepool/<nodepool-name> --namespace <hosted-cluster> --replicas=<nodepool-replicas>
So it could be great to have an annotation so CAPI does not delete a node so it is protected, like:
$ oc annotate machine <machine-name> cluster.x-k8s.io/deletion-protected-machine="" -n <namespace-name>
3. Why does the customer need this? (List the business requirements here)
To protect some nodes to not be scaled down in case they have specific workloads, llike ODF and not have scaling down problems.
4. List any affected packages or components.
HCP/NodePool - CAPI.