Assign node roles with ZTP for scope clusters on RHOCP 4
Issue
The default role assignment of RHOCP cluster nodes using AgentClusterInstall CR of ZTP (Zero Touch Provisioning) is both master/worker , despite the fact that the masters and workers quantity are set separately in the CR under spec.provisionRequirements like below:
apiVersion: extensions.hive.openshift.io/v1beta1
kind: AgentClusterInstall
metadata:
name: demo
namespace: demo
spec:
provisionRequirements:
controlPlaneAgents: 3
workerAgents: 2
Environment
Red Hat OpenShift Container Platform (RHOCP)
- 4
Red Hat Advanced Cluster Management (RHACM)
- 2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.