# KubeSphere忘记密码解决办法

Update information about the specified user.

使用方法参考下面或官方地址

官方Api地址:https://v2-0.docs.kubesphere.io/docs/api/kubesphere#operation/UpdateUser

查看ks-account集群内IP

# kubectl get svc -nkubesphere-system

ks-account      ClusterIP   10.99.14.139     <none>        80/TCP         25d

然后通过调用kubesphere接口来重新设置密码

curl -XPUT http://10.99.14.139/kapis/iam.kubesphere.io/v1alpha2/users/admin -H 'Content-Type:application/json' -d '{"username":"admin","email":"xxxxxx@xxx.com","password":"xxxxxxx"}'
posted @ 2022-07-01 17:27  Jerry·  阅读(1430)  评论(0)    收藏  举报