This guide shows you how to create and a machine class.
Create a file called machine-class.yaml with the following content:
metadata:namespace:defaulttype:MachineClasses.omni.sidero.devid:testspec:matchlabels:# matches machines with amd64 architecture and more than 2 CPUs - omni.sidero.dev/arch = amd64, omni.sidero.dev/cpus > 2
Create the machine class:
omnictlapply-fmachine-class.yaml
First, click the “Machine Classes” section in the sidebar on the left
Next, click the “Create Machine Class” button on the right.
Add machine query conditions by typing them manually in the input box.
Clicking the label in the machine list will add them to the input box.
Clicking on “+” will add blocks to match the machines using boolean OR operator.
Name the machine class, then click “Create Machine Class”.