Thursday, September 5, 2024

Rancher: How to reset a forgotten password for the "admin" user?

If Rancher is installed in a container on a Kubernetes cluster, to reset the default user password ("admin"), run the following command:

kubectl -n cattle-system exec $(kubectl -n cattle-system get pods | grep ^rancher | head -n 1 | awk '{ print $1 }') reset-password


No comments:

Post a Comment