When creating MachineSets what is the purpose of the labels machine.openshift.io/cluster-api-machine-role and machine.openshift.io/cluster-api-machine-type?

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Container Platform (OCP) 4.x

Issue

  • When creating MachineSets, OpenShift documentation specifies four labels. What is the purpose of the latter two labels?
    • machine.openshift.io/cluster-api-cluster: used by the controllers to look up the right cloud instance
    • machine.openshift.io/cluster-api-machineset: identifies a specific MachineSet
    • machine.openshift.io/cluster-api-machine-role
    • machine.openshift.io/cluster-api-machine-type

Resolution

  • They are simply a convenient way for users and consumers to retrieve groups of machines. The label name does not have a special meaning, and any name could be used instead.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments