Skip to content

Commit 3bc5587

Browse files
authored
Merge pull request #63109 from amolnar-rh/TELCODOCS-1348
TELCODOCS-1348: Expose disk cleaning option through SiteConfig
2 parents b5148ed + fd43851 commit 3bc5587

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

snippets/ztp-example-siteconfig.adoc

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ spec:
3737
nodeLabels: <7>
3838
node-role.kubernetes.io/example-label:
3939
custom-label/parameter1: true
40-
bmcAddress: idrac-virtualmedia://<out_of_band_ip>/<system_id>/ <8>
40+
# automatedCleaningMode: "disabled" <8>
41+
bmcAddress: idrac-virtualmedia://<out_of_band_ip>/<system_id>/ <9>
4142
bmcCredentialsName:
42-
name: "bmh-secret" <9>
43+
name: "bmh-secret" <10>
4344
bootMACAddress: "AA:BB:CC:DD:EE:11"
44-
bootMode: "UEFI" <10>
45-
rootDeviceHints: <11>
45+
bootMode: "UEFI" <11>
46+
rootDeviceHints: <12>
4647
wwn: "0x11111000000asd123"
47-
cpuset: "0-1,52-53" <12>
48-
nodeNetwork: <13>
48+
cpuset: "0-1,52-53" <13>
49+
nodeNetwork: <14>
4950
interfaces:
5051
- name: eno1
5152
macAddress: "AA:BB:CC:DD:EE:11"
@@ -56,7 +57,7 @@ spec:
5657
state: up
5758
ipv4:
5859
enabled: false
59-
ipv6: <14>
60+
ipv6: <15>
6061
enabled: true
6162
address:
6263
- ip: 1111:2222:3333:4444::aaaa:1
@@ -81,10 +82,11 @@ spec:
8182
<5> Optional. The CR specifed under `KlusterletAddonConfig` is used to override the default `KlusterletAddonConfig` that is created for the cluster.
8283
<6> For single-node deployments, define a single host. For three-node deployments, define three hosts. For standard deployments, define three hosts with `role: master` and two or more hosts defined with `role: worker`.
8384
<7> Specify custom roles to your nodes in your managed clusters. These are additional roles which are not used by any {product-title} components, only by the user. When you add a custom role, it can be associated with a custom machine config pool that references a specific configuration for that role. Adding your custom labels or roles during installation makes the deployment process more effective and prevents the need for additional reboots after the installation is complete.
84-
<8> BMC address that you use to access the host. Applies to all cluster types. {ztp} supports iPXE and virtual media booting by using Redfish or IPMI protocols. To use iPXE booting, you must use {rh-rhacm} 2.8 or later. For more information about BMC addressing, see the _Additional resources_ section.
85-
<9> Name of the `bmh-secret` CR that you separately create with the host BMC credentials. When creating the `bmh-secret` CR, use the same namespace as the `SiteConfig` CR that provisions the host.
86-
<10> Configures the boot mode for the host. The default value is `UEFI`. Use `UEFISecureBoot` to enable secure boot on the host.
87-
<11> Specifies the device for deployment. Identifiers that are stable across reboots are recommended, for example `wwn: <disk_wwn>` or `deviceName: /dev/disk/by-path/<device_path>`. For a detailed list of stable identifiers, see the _About root device hints_ section.
88-
<12> `cpuset` must match the value set in the cluster `PerformanceProfile` CR `spec.cpu.reserved` field for workload partitioning.
89-
<13> Specifies the network settings for the node.
90-
<14> Configures the IPv6 address for the host. For {sno} clusters with static IP addresses, the node-specific API and Ingress IP addresses must be the same.
85+
<8> Optional. If the value is set to `metadata`, the partitioning table of the disk is removed, but the disk is not fully wiped. By default, the `automatedCleaningMode` field is disabled. To enable removing the partitioning table, uncomment this line and set the value to `metadata`.
86+
<9> BMC address that you use to access the host. Applies to all cluster types. {ztp} supports iPXE and virtual media booting by using Redfish or IPMI protocols. To use iPXE booting, you must use {rh-rhacm} 2.8 or later. For more information about BMC addressing, see the _Additional resources_ section.
87+
<10> Name of the `bmh-secret` CR that you separately create with the host BMC credentials. When creating the `bmh-secret` CR, use the same namespace as the `SiteConfig` CR that provisions the host.
88+
<11> Configures the boot mode for the host. The default value is `UEFI`. Use `UEFISecureBoot` to enable secure boot on the host.
89+
<12> Specifies the device for deployment. Identifiers that are stable across reboots are recommended, for example `wwn: <disk_wwn>` or `deviceName: /dev/disk/by-path/<device_path>`. For a detailed list of stable identifiers, see the _About root device hints_ section.
90+
<13> `cpuset` must match the value set in the cluster `PerformanceProfile` CR `spec.cpu.reserved` field for workload partitioning.
91+
<14> Specifies the network settings for the node.
92+
<15> Configures the IPv6 address for the host. For {sno} clusters with static IP addresses, the node-specific API and Ingress IP addresses must be the same.

0 commit comments

Comments
 (0)