How to remove worker role from control plane in OpenShift 4?

Solution Verified - Updated -

Issue

  • On bare metal installations, master nodes feature both master and worker roles.
  • How to remove worker role from master in Red Hat OpenShift Container Platform 4?
  • Not able to apply taint on master nodes due to which application pods are getting scheduled on master nodes.
  • How to taint control plane nodes so that application pods are always scheduled on worker nodes?
  • The worker role is shown also for control plane nodes:

    master-0.example.com   Ready    control-plane,master,worker   6d   v1.26.5+0001a21
    master-1.example.com   Ready    control-plane,master,worker   6d   v1.26.5+0001a21
    master-2.example.com   Ready    control-plane,master,worker   6d   v1.26.5+0001a21
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Control Plane Schedulable

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