请问kubesphere3.0忘记admin密码情况下,如何修改admin密码

  • @eeokee
    通过kubectl 编辑user, 删除annotation中的iam.kubesphere.io/password-encrypted 修改spec.password,等用户状态变为active 就可以登录了

    kubectl edit users <username>

@eeokee
通过kubectl 编辑user, 删除annotation中的iam.kubesphere.io/password-encrypted 修改spec.password,等用户状态变为active 就可以登录了

kubectl edit users <username>
    3 个月 后

    freemankevin

    kubectl patch users <username> -p '{"spec":{"password":"<password>"}}' --type='merge' && kubectl annotate users <username> iam.kubesphere.io/password-encrypted-
      9 天 后

      好吧,碰到同样问题了,感谢大佬

      4 个月 后
      1 年 后

      hongming 亲测有效。

      kubectl patch users admin -p ‘{“spec”:{“password”:“xxxxxxxx”}}’ –type=‘merge’ && kubectl annotate users admin iam.kubesphere.io/password-encrypted-