Setting node label with machineset during node creation

Solution In Progress - Updated -

Issue

  • When using a machineset to create a node, the node will appear as a worker node even though the role and type are defined as in the following example:.
metadata:
  labels:
    machine.openshift.io/cluster-api-cluster: cluster_name
    machine.openshift.io/cluster-api-machine-role: infra
    machine.openshift.io/cluster-api-machine-type: infra
template:
    metadata:
      labels:
       machine.openshift.io/cluster-api-cluster: cluster_name
        machine.openshift.io/cluster-api-machine-role: infra
        machine.openshift.io/cluster-api-machine-type: infra
        machine.openshift.io/cluster-api-machineset: node_name

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content