1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Files
installer/docs/user/openstack/deploy_baremetal_workers.md
Michał Dulko c781171412 Remove support for Kuryr
In 4.15 Kuryr is no longer a supported NetworkType, following its
deprecation in 4.12. This commit removes mentions of Kuryr from the
documentation and code, but also adds validation to prevent
installations from being executed when `networkType` is set to `Kuryr`.
2023-11-14 15:06:19 +01:00

9.1 KiB

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.