On this page

    Server Classes

    Server classes are a way to group distinct server resources. The "qualifiers" key allows the administrator to specify criteria upon which to group these servers. There are currently three keys: cpu, systemInformation, and labelSelectors. Each of these keys accepts a list of entries. The top level keys are a "logical AND", while the lists under each key are a "logical OR". Qualifiers that are not specified are not evaluated.

    An example:

    apiVersion: metal.sidero.dev/v1alpha1
    kind: ServerClass
    metadata:
      name: example
    spec:
      qualifiers:
        cpu:
          - manufacturer: Intel(R) Corporation
            version: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz
          - manufacturer: Advanced Micro Devices, Inc.
            version: AMD Ryzen 7 2700X Eight-Core Processor
        labelSelectors:
          - "my-server-label": "true"

    Servers would only be added to the above class if they had EITHER CPU info, AND the label associated with the server resource.

    Additionally, Sidero automatically creates and maintains a server class called "any" that includes all (accepted) servers. Attempts to add qualifiers to it will be reverted.