kubesphere忘记密码如何重置密码

Master节点执行下面命令
kubectl patch users admin -p ‘{“spec”:{“password”:“123456”}}’ --type=‘merge’ && kubectl annotate users admin iam.kubesphere.io/password-encrypted-

重启下面三个服务
kubectl -n kubesphere-system rollout restart deploy ks-apiserver

kubectl -n kubesphere-system rollout restart deploy ks-console

kubectl -n kubesphere-system rollout restart deploy ks-installer

你可能感兴趣的:(kubesphere)