Setting node label with machineset during node creation
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.