Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-8840

Create new annotation to not scale down nodepool machines in HCP

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Hosted Control Planes
    • None
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • 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.

              racedoro@redhat.com Ramon Acedo
              rhn-support-dahernan David Hernandez Fernandez
              None
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                None
                None