Restricting the API server to private for an Microsoft Azure cluster

If the security posture of your organization does not allow clusters to use an open API endpoint, you can restrict the API server to use only internal load balancers. To implement this API server restriction, use the Microsoft Azure console to delete the external load balancer component.

Prerequisites
  • You have installed an Red Hat OpenShift Container Platform cluster on Azure.

  • You have access to the Azure console as a user with administrator privileges.

Procedure
  1. Log in to the Azure console as a user with administrator privileges.

  2. Delete the following resources:

    • The api-v4 rule for the public load balancer.

    • The frontendIPConfiguration parameter that is associated with the api-v4 rule for the public load balancer.

    • The public IP address that is specified in the frontendIPConfiguration parameter.

  3. Configure the Ingress Controller endpoint publishing scope to Internal. For more information, see "Configuring the Ingress Controller endpoint publishing scope to Internal".

  4. Delete the api.<cluster_name> DNS entry in the public zone.

    where <cluster_name> is the name of the cluster.