Reset the Account Password
Reset the Password of a Regular User
Log in to the KubeSphere web console using the administrator who has the permission to manage users.
Click Platform on the upper-left corner and select Access Control. Click Users.
On the Users page, click the user of which you need to change the password to visit its details page.
On the details page, click More, and then select Change Password from the drop-down list.
On the displayed dialog box, enter a new password and confirm the password. Click OK after finished.
Reset the Administrator Password
Execute the following command on the host cluster to change the password of any account.
kubectl patch users <USERNAME> -p '{"spec":{"password":"<YOURPASSWORD>"}}' --type='merge' && kubectl annotate users <USERNAME> iam.kubesphere.io/password-encrypted-
Note
Make sure you replace <USERNAME>
and <YOURPASSWORD>
with the username and the new password in the command before you run it.
当前内容版权归 KubeSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 KubeSphere .