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