You are viewing documentation for KubeSphere version:v3.0.0

KubeSphere v3.0.0 documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see the latest version.

FAQ

Reset the Account Password

Reset the Password of a Regular User

The administrator who has the permission to manage users can change an account password. On the Accounts page, click the account of which you need to change the password. On the detail page, select Change Password from the More drop-down list.

modify-password

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 account and the new password in the command before you run it.