Skip to content
English
  1. 在任意一台配置了 kubeconfig 的服务器上执行
kubectl get pods -n cattle-system
  1. 获取到 rancher 的 Pod 名

  2. 执行下列命令重置 Admin 密码

kubectl -n cattle-system  exec <Rancher Pod 名> -- reset-password
  1. 等待日志打印显示 Rancher Admin 密码
W0806 12:09:52.684129    7688 client_config.go:614] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
New password for default admin user (user-t9vp6):
77zmztAHp9vzANGtbkMB

Digital Ecosystem Infrastructure.