Available in editions:  Ultimate/EE

The module lifecycle stage: Experimental

The module has requirements for installation

Before enabling the module, you need to allow the use of experimental modules in the deckhouse ModuleConfig. To do this, set the allowExperimentalModules parameter to true.

The module is disabled by default. To enable it, create the infra-provider-baremetal ModuleConfig and set the nodes.parameters.ironic parameter in it. Until the parameter is set, the module components are not started.

Choosing the Ironic mode and the setup procedure are described on the “Usage” page.

The module is not enabled by default in any bundles.

How to explicitly enable the module...

You may explicitly enable or disable the module in one of the following ways:

  • Via Deckhouse web UI. In the “System” → “System Management” → “Deckhouse” → “Modules” section, open the infra-provider-baremetal module and enable (or disable) the “Module enabled” toggle. Save changes.

    Example:

    Module enable/disable interface

  • Via Deckhouse CLI (d8).

    Use the d8 system module enable command for enabling, or d8 system module disable command for disabling the module (you need Deckhouse CLI (d8), configured to work with the cluster).

    Example of enabling the module:

    d8 system module enable infra-provider-baremetal
    
  • Using ModuleConfig infra-provider-baremetal.

    Set spec.enabled to true or false in ModuleConfig infra-provider-baremetal (create it if necessary);

    Example of a manifest to enable module infra-provider-baremetal:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: infra-provider-baremetal
    spec:
      enabled: true
    

How to configure the module...

You can configure the module in one of the following ways:

  • Via Deckhouse web UI.

    In the “System” → “System Management” → “Deckhouse” → “Modules” section, open the infra-provider-baremetal module and enable the “Advanced Settings” switch. Fill in the required fields in the “Configuration” tab or specify the module settings in YAML format on the “YAML” tab, excluding the settings section. Save the changes.

    Example:

    Module Setup Interface

    You can also edit the ModuleConfig object infra-provider-baremetal on the “YAML” tab in the module settings window (“System” → “System Management” → “Deckhouse” → “Modules”, open the module infra-provider-baremetal) by specifying the schema version in the spec.version parameter and the necessary module parameters in the spec.settings section.

  • Via Deckhouse CLI (d8) (requires Deckhouse CLI (d8) configured to work with the cluster).

    Edit the existing ModuleConfig infra-provider-baremetal (for more details on configuring Deckhouse, see the documentation) by executing the following command:

    d8 k edit mc infra-provider-baremetal
    

    Make the necessary changes in the spec.settings section. If necessary, specify the schema version in the spec.version parameter. Save the changes.

    You can also create a file with manifest for ModuleConfig infra-provider-baremetal using the example below. Fill in the spec.settings section with the required module parameters. If necessary, specify the schema version in the spec.version parameter.

    Apply the manifest using the following command (indicate the manifest file name):

    d8 k apply -f <FILENAME>
    

    Example of a manifest for ModuleConfig infra-provider-baremetal:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: infra-provider-baremetal
    spec:
      version: 1
      enabled: true
      settings: # Module parameters from the "Parameters" section below.
    

Requirements

To the Deckhouse version: 1.68.0 and above.

Parameters

Schema version: 1

  • settings
    object
    • settings.nodes
      object

      Settings for creating cluster nodes on physical servers.

      • settings.nodes.parameters
        object

        Required value

        Parameters for creating cluster nodes on physical servers.

        • settings.nodes.parameters.ironic
          object

          Required value

          Settings of the Ironic service that the module uses to manage servers and install the operating system on them.

          To connect to Ironic deployed outside the cluster, set the externalInstance parameter. To deploy Ironic in the cluster, set the provisioningNetwork and dhcp parameters.

          • settings.nodes.parameters.ironic.bmcProbeTimeoutSeconds
            integer

            Timeout of a single protocol check when connecting to a baseboard management controller (BMC), in seconds.

            Default: 15

            Allowed values: 1 <= X <= 300

          • settings.nodes.parameters.ironic.dhcp
            object

            DHCP settings in the provisioning network.

            Set either the internal or the external parameter.

            • settings.nodes.parameters.ironic.dhcp.external
              object

              Settings of an external DHCP server in the provisioning network.

              The module does not deploy a DHCP server and does not configure the external one. Configure PXE boot of servers on the external DHCP server yourself.

              • settings.nodes.parameters.ironic.dhcp.external.pxeBootFile
                object

                Boot file names configured on the external DHCP server.

                • settings.nodes.parameters.ironic.dhcp.external.pxeBootFile.bios
                  string

                  Boot file name for servers in legacy BIOS mode.

                  Length: 1..1024

                • settings.nodes.parameters.ironic.dhcp.external.pxeBootFile.uefi
                  string

                  Boot file name for servers in UEFI mode.

                  Length: 1..1024

              • settings.nodes.parameters.ironic.dhcp.external.pxeBootServer
                string

                Required value

                IPv4 address of the PXE server that the external DHCP server passes to servers.

            • settings.nodes.parameters.ironic.dhcp.internal
              object

              Settings of the built-in DHCP server that Ironic runs in the provisioning network.

              • settings.nodes.parameters.ironic.dhcp.internal.disableDNS
                boolean

                Disables the built-in DNS server and prevents DHCP from passing a DNS server address to servers.

                By default, DHCP passes dnsAddress if specified. Otherwise, Ironic serves DNS and forwards queries using the resolver configuration of its pod.

                Set to true for an isolated provisioning network that does not need DNS.

                When true, cannot be used with the dnsAddress parameter.

                Default: false

              • settings.nodes.parameters.ironic.dhcp.internal.dnsAddress
                string

                DNS server address that the DHCP server passes to servers.

                Cannot be used if the disableDNS parameter is true.

              • settings.nodes.parameters.ironic.dhcp.internal.gatewayAddress
                string

                Default gateway address that the DHCP server passes to servers.

              • settings.nodes.parameters.ironic.dhcp.internal.networkCIDR
                string

                Required value

                Provisioning network subnet in CIDR format.

              • settings.nodes.parameters.ironic.dhcp.internal.rangeBegin
                string

                Required value

                First IPv4 address of the range the DHCP server assigns to servers.

              • settings.nodes.parameters.ironic.dhcp.internal.rangeEnd
                string

                Required value

                Last IPv4 address of the range the DHCP server assigns to servers.

          • settings.nodes.parameters.ironic.externalInstance
            object

            Settings for connecting to Ironic deployed outside the cluster.

            If the parameter is set, the module does not deploy Ironic or a DHCP server. Cannot be used with the provisioningNetwork, dhcp, ramdiskImageRef, ipxeFirmwareRef, and provisioningTLS parameters.

            • settings.nodes.parameters.ironic.externalInstance.credentialsRef
              object

              Reference to the Secret with credentials for the external Ironic API.

              The Secret must contain the identity key with the user name and the secret key with the password.

              • settings.nodes.parameters.ironic.externalInstance.credentialsRef.kind
                string

                Required value

                Kind of the resource with external Ironic API credentials.

                Allowed values: Secret

              • settings.nodes.parameters.ironic.externalInstance.credentialsRef.name
                string

                Required value

                Name of the Secret with external Ironic API credentials.

                Length: 1..253

              • settings.nodes.parameters.ironic.externalInstance.credentialsRef.namespace
                string

                Required value

                Namespace of the Secret with external Ironic API credentials.

                Only the d8-infra-provider-baremetal namespace is supported.

                Pattern: ^d8-infra-provider-baremetal$

            • settings.nodes.parameters.ironic.externalInstance.endpoint
              string

              Required value

              URL of the external Ironic API.

              The URL must end with /v1 or /v1/ and be reachable from the cluster.

              Pattern: ^https?://.+/v1/?$

              Maximum length: 2048

            • settings.nodes.parameters.ironic.externalInstance.tls
              object

              TLS settings for connecting to the external Ironic.

              • settings.nodes.parameters.ironic.externalInstance.tls.caCertRef
                object

                Reference to the Secret key with the CA certificate that issued the external Ironic API certificate.

                • settings.nodes.parameters.ironic.externalInstance.tls.caCertRef.key
                  string

                  Required value

                  Key in the Secret that holds the external Ironic CA certificate.

                  Length: 1..253

                • settings.nodes.parameters.ironic.externalInstance.tls.caCertRef.kind
                  string

                  Required value

                  Kind of the resource with the external Ironic CA certificate.

                  Allowed values: Secret

                • settings.nodes.parameters.ironic.externalInstance.tls.caCertRef.name
                  string

                  Required value

                  Name of the Secret with the external Ironic CA certificate.

                  Length: 1..253

                • settings.nodes.parameters.ironic.externalInstance.tls.caCertRef.namespace
                  string

                  Required value

                  Namespace of the Secret with the external Ironic CA certificate.

                  Only the d8-infra-provider-baremetal namespace is supported.

                  Pattern: ^d8-infra-provider-baremetal$

              • settings.nodes.parameters.ironic.externalInstance.tls.clientCertRef
                object

                Reference to the Secret with the client certificate and private key for mutual TLS authentication.

                • settings.nodes.parameters.ironic.externalInstance.tls.clientCertRef.certKey
                  string

                  Required value

                  Key in the Secret that holds the client certificate.

                  Length: 1..253

                • settings.nodes.parameters.ironic.externalInstance.tls.clientCertRef.kind
                  string

                  Required value

                  Kind of the resource with the client certificate.

                  Allowed values: Secret

                • settings.nodes.parameters.ironic.externalInstance.tls.clientCertRef.name
                  string

                  Required value

                  Name of the Secret with the client certificate and private key.

                  Length: 1..253

                • settings.nodes.parameters.ironic.externalInstance.tls.clientCertRef.namespace
                  string

                  Required value

                  Namespace of the Secret with the client certificate and private key.

                  Only the d8-infra-provider-baremetal namespace is supported.

                  Pattern: ^d8-infra-provider-baremetal$

                • settings.nodes.parameters.ironic.externalInstance.tls.clientCertRef.privateKey
                  string

                  Required value

                  Key in the Secret that holds the client private key.

                  Length: 1..253

              • settings.nodes.parameters.ironic.externalInstance.tls.insecure
                boolean

                Disables verification of the external Ironic API certificate.

                Do not use in production environments.

                Default: false

          • settings.nodes.parameters.ironic.ipxeFirmwareRef
            object

            Reference to the BareMetalIPXEFirmware resource with iPXE firmware for server boot over TLS.

            Used only together with the provisioningTLS parameter. If the parameter is set without provisioningTLS, the module does not create Ironic.

            • settings.nodes.parameters.ironic.ipxeFirmwareRef.kind
              string

              Required value

              Kind of the resource with iPXE firmware.

              Allowed values: BareMetalIPXEFirmware

            • settings.nodes.parameters.ironic.ipxeFirmwareRef.name
              string

              Required value

              Name of the BareMetalIPXEFirmware resource.

              Length: 1..253

          • settings.nodes.parameters.ironic.provisioningNetwork
            object

            Settings of the provisioning network where servers boot over PXE.

            Used only if the module deploys Ironic in the cluster.

            • settings.nodes.parameters.ironic.provisioningNetwork.interface
              string

              Required value

              Name of the network interface connected to the provisioning network on the node where Ironic runs.

              Pattern: ^[A-Za-z0-9_.:-]{1,15}$

            • settings.nodes.parameters.ironic.provisioningNetwork.ipAddress
              string

              Required value

              Free IPv4 address in the provisioning network.

              Ironic assigns this address to the interface from the interface parameter and accepts server connections on it.

          • settings.nodes.parameters.ironic.provisioningTLS
            object

            Enables TLS for the Ironic API and for file downloads by servers.

            Supported only with the built-in DHCP server (dhcp.internal). Requires the ramdiskImageRef and ipxeFirmwareRef parameters. The module creates Ironic only when the Secret and the resources from these parameters are ready.

            • settings.nodes.parameters.ironic.provisioningTLS.certificateRef
              object

              Required value

              Reference to the Secret with the Ironic TLS certificate in the d8-infra-provider-baremetal namespace.

              The Secret must have the kubernetes.io/tls type, contain the tls.crt, tls.key, and ca.crt keys, and have the environment.metal3.io/ironic-standalone-operator: "true" label.

              • settings.nodes.parameters.ironic.provisioningTLS.certificateRef.name
                string

                Required value

                Name of the Secret with the Ironic TLS certificate.

                Length: 1..253

          • settings.nodes.parameters.ironic.ramdiskImageRef
            object

            Reference to the BareMetalRamdiskImage resource with the Ironic Python Agent (IPA) image for server boot.

            If the parameter is not set, the built-in IPA image is used. The parameter is required if the provisioningTLS parameter is set.

            • settings.nodes.parameters.ironic.ramdiskImageRef.kind
              string

              Required value

              Kind of the resource with the IPA image.

              Allowed values: BareMetalRamdiskImage

            • settings.nodes.parameters.ironic.ramdiskImageRef.name
              string

              Required value

              Name of the BareMetalRamdiskImage resource.

              Length: 1..253