Reset the OpenShift kubeadmin password
Reset the kubeadmin bootstrap password when the original credential is lost and no other cluster-admin identity provider is available.
Prerequisites
- SSH access to a control plane node (as
core, withsudoif required). ocavailable on the node or copied in with the recovery kubeconfig.htpasswdavailable to generate the bcrypt hash (installhttpd-toolson RHEL, or run from a toolbox/UBI container).- A new password of at least 23 characters (required by the bootstrap authenticator).
kube-system. Use only for cluster recovery. After restoring access, define an identity provider and create a dedicated cluster-admin user, then remove kubeadmin per Red Hat documentation.1. SSH to a control plane node
Connect to any healthy control plane node in the cluster.