Skip to content

Latest commit

 

History

History
229 lines (155 loc) · 9.1 KB

deploy_baremetal_workers.md

File metadata and controls

229 lines (155 loc) · 9.1 KB

Deploying OpenShift bare-metal workers on OpenStack cloud provider

Table of Contents

Common prerequisites

Considerations when deploying bare-metal workers

  • Long boot times for bare-metal machines may result in deployment timeout

    The first time a bare-metal server is booted the boot time could be significantly longer that the first time a VM server is booted. This longer boot time could exceed the timeout settings of the installer. If that occurs, the deployment will fail with a timeout error. The deployment maybe restarted and completed by re-running the installer with the appropriate wait-for command. For example:

      ./openshift-install wait-for install-complete --log-level debug
    

Deploying cluster with BM workers on tenant network deployed by the installer

The initial cluster is deployed using bare-metal workers only. Bare-metal workers and control plane VMs are all attached to the tenant network provisioned by the installer.

  • Requirements:

    • By default, OpenStack networks support attaching both VMs and bare-metal machines to them.
  • Create install-config.yaml:

    • Set compute.[worker].platform.openstack.type to the bare-metal server flavor.

    • Set controlPlane.platform.openstack.type to the VM flavor which will be used by the control plane nodes.

      For example:

            controlPlane:
               platform:
                 openstack:
                   type: <vmComputeFlavorForMasters>
      
             ... other settings
      
             compute:
             - architecture: amd64
               hyperthreading: Enabled
               name: worker
               platform:
                 openstack:
                   type: <baremetalComputeFlavor>
               replicas: 3
      
             ... other settings
      
  • Run the openshift installer:

    ./openshift-install create cluster --log-level debug
    
  • wait for the installer to complete.

    If the installer times out waiting for the bare-metal workers to complete booting, restart the installation using the appropriate wait-for command.

Deploying cluster with BM workers on preexisting network

Initial cluster is deployed using bare-metal workers only. Bare-metal workers are attached to a preexisting network.

  • Requirements:

    • An OpenStack subnet has been pre-provisioned which supports attaching both VMs and bare-metal servers to it.
  • Create install-config.yaml:

    • Set compute.[worker].platform.openstack.type to the bare-metal server flavor.

    • Set controlPlane.platform.openstack.type to the VM flavor which will be used by the control plane nodes.

    • Set platform.openstack.controlPlanePort.fixedIPs.subnet.id to the UUID of the pre-provisioned subnet and/or platform.openstack.controlPlanePort.fixedIPs.subnet.name to the name of pre-provisioned subnet.

      For example:

            controlPlane:
               platform:
                 openstack:
                   type: <vmComputeFlavorForMasters>
      
             ... other settings
      
             compute:
             - architecture: amd64
               hyperthreading: Enabled
               name: worker
               platform:
                 openstack:
                   type: <baremetalComputeFlavor>
               replicas: 3
      
             ... other settings
      
             platform:
               openstack:
                  controlPlanePort:
                    fixedIPs:
                      - subnet:
                          id: <uuidOfPreprovisionedSubnet>
      
  • Run the openshift installer:

      ./openshift-install create cluster --log-level debug
    
  • wait for the installer to complete.

    If the installer times out waiting for the bare-metal workers to complete booting, restart the installation using the appropriate wait-for command.

Deploying cluster with BM machines only on preexisting network

Initial cluster is deployed using bare-metal machines only for both Control Plane and Compute nodes. The cluster is deployed to a preexisting network.

  • Requirements:

    • An OpenStack subnet has been pre-provisioned which supports attaching bare-metal servers to it.
  • Create install-config.yaml:

    • Set compute.[worker].platform.openstack.type to a bare-metal server flavor.

    • Set controlPlane.platform.openstack.type to a bare-metal server flavor.

    • Set platform.openstack.controlPlanePort.fixedIPs.subnet.id to the UUID of the pre-provisioned subnet and/or platform.openstack.controlPlanePort.fixedIPs.subnet.name to the name of pre-provisioned subnet.

      For example:

            controlPlane:
               platform:
                 openstack:
                   type: <bmComputeFlavorForMasters>
      
             ... other settings
      
             compute:
             - architecture: amd64
               hyperthreading: Enabled
               name: worker
               platform:
                 openstack:
                   type: <bmComputeFlavorForWorkers>
               replicas: 3
      
             ... other settings
      
             platform:
               openstack:
                  controlPlanePort:
                    fixedIPs:
                      - subnet:
                          id: <uuidOfPreprovisionedSubnet>
      
  • Run the openshift installer:

      ./openshift-install create cluster --log-level debug
    
  • wait for the installer to complete.

    If the installer times out waiting for the bare-metal workers to complete booting, restart the installation using the appropriate wait-for command.

Deploying cluster with mixture of VM and BM workers

Cluster is initially deployed with VM workers. BM workers are added to the cluster post initial deployment.

  • Requirements:

    • By default, OpenStack networks support attaching both VMs and bare-metal machines to them.
  • Create install-config.yaml:

    • Set compute.[worker].platform.openstack.type to the VM flavor which will be used for VM workers.

    • Set controlPlane.platform.openstack.type to the VM flavor which will be used by the control plane nodes.

      For example:

            controlPlane:
               platform:
                 openstack:
                   type: <vmComputeFlavorForMasters>
      
             ... other settings
      
             compute:
             - architecture: amd64
               hyperthreading: Enabled
               name: worker
               platform:
                 openstack:
                   type: <vmComputeFlavorForWorkers>
               replicas: 3
      
  • Run the openshift installer:

      ./openshift-install create cluster --log-level debug
    
  • Once the cluster is deployed and running, create and deploy a new infrastructure MachineSet using the bare-metal server flavor.