Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 931 Bytes

authentication-remove-kubeadmin.adoc

File metadata and controls

34 lines (27 loc) · 931 Bytes

Removing the kubeadmin user

After you define an identity provider and create a new cluster-admin user, you can remove the kubeadmin to improve cluster security.

Warning

If you follow this procedure before another user is a cluster-admin, then {product-title} must be reinstalled. It is not possible to undo this command.

Prerequisites
  • You must have configured at least one identity provider.

  • You must have added the cluster-admin role to a user.

  • You must be logged in as an administrator.

Procedure
  • Remove the kubeadmin secrets:

    $ oc delete secrets kubeadmin -n kube-system