Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-38758

TP: HCP Control Plane Tolerations

XMLWordPrintable

    • HCP Control Plane Tolerations
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      We have an API and a CLI option to pass tolerations for HCP control plane pods

      Show
      We have an API and a CLI option to pass tolerations for HCP control plane pods
    • Yellow
    • To Do
    • OCPSTRAT-1391 - [Tech Preview] HCP Control Plane Tolerations
    • OCPSTRAT-1391[Tech Preview] HCP Control Plane Tolerations
    • 0% To Do, 0% In Progress, 100% Done
    • dev-ready, doc-ready, po-ready, qe-ready, ux-ready
    • Hide

      2024-10-14:
      waiting for HCP doc team confirmation we can close the doc story....

      Show
      2024-10-14: waiting for HCP doc team confirmation we can close the doc story....
    • ---
    • ---

      Customers have requested the ability to have the ability to apply tolerations to the HCP control plane pods. This provides the flexibility to have the HCP pods scheduled to nodes with taints applied to them that are not currently tolerated by default.

      API 

      Add new field to HostedCluster. hc.Spec.Tolerations

      Tolerations   []corev1.Toleration `json:"tolerations,omitempty"` 

      Implementation

      In support/config/deployment.go, add hc.spec.tolerations from hc when generating the default config. This will cause the toleration to naturally get spread to the deployments and statefulsets.

      CLI

      Add new cli argument called –tolerations to the hcp cli tool during cluster creation. This argument should be able to be set multiple times. The syntax of the field should follow the convention set by the kubectl client tool when setting a taint on a node.

      For example, the kubectl client tool can be used to set the following taint on a node.

      kubectl taint nodes node1 key1=value1:NoSchedule

      And then the hcp cli tool should be able to add a toleration for this taint during creation with the following cli arg.

      hcp cluster create kubevirt –toleration “key1=value1:noSchedule” …

              rhn-engineering-dvossel David Vossel
              rhn-engineering-dvossel David Vossel
              Liangquan Li Liangquan Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: