Member-only story
Recovering Openshift 4 Password for Kubeadmin
Red Hat Openshift 4 provides two different ways to install its platform: Installer-provisioned infrastructure (IPI) and User-provisioned infrastructure (UPI). Between these two, IPI is a great option for a team with public access to the Internet, because it provides a quick installation that should not take more than 30 minutes with its automated wizard.
However, it’s always possible that something could go wrong or you could accidentally lose information that you need. Some information can be very important, like the admin password or cluster URL. You may forget to write down the information or lose the file with the data. So how do you recover the lost password?
Lost kubeadmin password
For example, as seen in the screenshot below, after I ran the openshift-install create cluster --dir $HOME/cluster-xxx
command and went through the installation wizard, my Terminal window somehow forgot to print out the kubeadmin password.
OpenShift installation log
Fortunately, there is a way to recover the information. To retrieve the password, however, the following two requirements must be satisfied:
- You have
sudo
access to the OpenShift cluster. - The path containing the OpenShift cluster is…