I tried to find password in .openshift_install.log
file and I found something but it didn't work. I tried to oc get secrets kubeadmin -n kube-system -ojsonpath='{.data.kubeadmin}' | base64 --decode && echo ""
and it didn't work neither. How can I reset kubeadmin password with oc ??
Thanks
Asked
Active
Viewed 374 times
0

Mohammad Mousavi
- 41
- 1
- 3
-
are you sure you are using password? default K8S authentication is based on certificate authentication. I'm not sure about OpenShift, since not worked with it. – Zareh Kasparian Mar 08 '22 at 07:57
-
Hi Mohammad Mousavi, what is the output of `oc get secrets kubeadmin -n kube-system`? `oc get secrets kubeadmin -n kube-system -o yaml`? Is the secret there? – mozello Mar 08 '22 at 11:15