Customize the default bare metal host profile¶
This section describes the bare metal host profile settings and instructs how to configure this profile before deploying Mirantis Container Cloud on physical servers.
The bare metal host profile is a Kubernetes custom resource. It allows the Infrastructure Operator to define how the storage devices and the operating system are provisioned and configured.
The bootstrap templates for a bare metal deployment include the template for
BareMetalHostProfile object in the following file
that defines the default bare metal host profile:
BareMetalHostProfile, you can configure LVM or mdadm-based
software RAID support during a management or managed cluster
creation. For details, see Configure RAID support.
This feature is available as Technology Preview. Use such configuration for testing and evaluation purposes only. For the Technology Preview feature definition, refer to Technology Preview features.
All data will be wiped during cluster deployment on devices
defined directly or indirectly in the
fileSystems list of
BareMetalHostProfile. For example:
A raw device partition with a file system on it
A device partition in a volume group with a logical volume that has a file system on it
An mdadm RAID device with a file system on it
An LVM RAID device with a file system on it
wipe field is always considered
true for these devices.
false value is ignored.
Therefore, to prevent data loss, move the necessary data from these file systems to another server beforehand, if required.
The customization procedure of
BareMetalHostProfile is almost the same for
the management and managed clusters, with the following differences:
For a management cluster, the customization automatically applies to machines during bootstrap. And for a managed cluster, you apply the changes using
kubectlbefore creating a managed cluster.
For a management cluster, you edit the default
baremetalhostprofiles.yaml.template. And for a managed cluster, you create a new
BareMetalHostProfilewith the necessary configuration.
For the procedure details, see Create a custom bare metal host profile. Use this procedure for both types of clusters considering the differences described above.