Skip to main content
This guide shows you how to create a machine class.
Create a file called machine-class.yaml with the following content:
metadata:
  namespace: default
  type: MachineClasses.omni.sidero.dev
  id: test
spec:
  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:
omnictl apply -f machine-class.yaml