MAAS CAPI Override Reference
This page provides examples and references for overriding Cluster API (CAPI) properties on MAAS clusters using the Cluster API Provider MAAS (CAPMAAS).
Overriding CAPI properties is not supported on MAAS HyperShift host clusters or HyperShift-hosted OpenShift workload clusters. The override toggles in the Palette UI have no effect on these cluster types.
MAAS
Cluster-level overrides target the MaasCluster resource, and pool-level overrides target the MaasMachineTemplate
resource.
| Level | CAPI Kind | API References |
|---|---|---|
| Cluster | MaasCluster | v0.6.1 MaasCluster API types |
| Pool | MaasMachineTemplate | v0.6.1 MaasMachineTemplate API types |
Examples
These examples demonstrate how to override CAPI properties using YAML directly targeting the underlying CAPMAAS resources.
Cluster-Level
maasCluster:
spec:
lxdConfig:
networkBridge: passthrough-dev
Pool-Level
MaasMachineTemplate has an extra level of nesting. The spec wraps a template, which contains another spec field
that holds the actual machine configuration. All pool-level MAAS overrides use this structure.
maasMachineTemplate:
spec:
template:
spec:
tags:
- pcp
Disk Erase on Machine Release
When Palette removes a node from a MAAS cluster (for example, during a repave, a node pool scale-down, or a cluster
deletion), it releases the machine back to MAAS. The eraseDisksOnRelease field of the MaasCluster resource controls
whether Palette asks MAAS to erase the machine's disks during the release. Set this field in a cluster-level override.
The following table describes the supported values.
| Value | Behavior |
|---|---|
none | Default. Palette does not request a disk erase. |
full | MAAS overwrites each disk in full. |
quick | MAAS removes the disk signatures and writes zeros to the first and last 2 MiB of each disk. |
secure | MAAS uses the secure erase feature of each drive. If a drive does not support secure erase, MAAS overwrites the disk in full. |
maasCluster:
spec:
eraseDisksOnRelease: full
When disk erase is on, MAAS erases every disk that the machine can access, including Storage Area Network (SAN) volumes
that are still attached to the node. Use none on clusters whose nodes attach SAN volumes.
Removing eraseDisksOnRelease from the override does not turn off disk erase on a cluster where you already set it. To
turn off disk erase, set the value to none. Refer to
How Overrides Work for more information.
If your MAAS environment is configured to erase disks on release, MAAS erases them even when eraseDisksOnRelease is
none. Refer to the MAAS documentation for its disk erase settings.
Unsupported First-Class Properties
All first-class properties are supported. To learn more about the difference between first-class properties and override properties, refer to the First-Class Support vs. Override section.