kubesphere 重置admin账号密码

1. 获取api-account 服务的ip
root@master ~]#kubectl  get svc -n kubesphere-system
NAME            TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
ks-account      ClusterIP   10.10.208.13    <none>        80/TCP         27d
ks-apigateway   ClusterIP   10.10.100.54    <none>        80/TCP         27d
ks-apiserver    ClusterIP   10.10.68.67     <none>        80/TCP         27d
ks-console      NodePort    10.10.197.50    <none>        80:30880/TCP   27d
minio           ClusterIP   10.10.127.104   <none>        9000/TCP       27d
mysql           ClusterIP   10.10.65.176    <none>        3306/TCP       27d
openldap        ClusterIP   None            <none>        389/TCP        27d
redis           ClusterIP   10.10.112.159   <none>        6379/TCP       27d
2. 重置admin密码;
curl -X PUT http://10.10.208.13/kapis/iam.kubesphere.io/v1alpha2/users/admin -H 'Content-Type: application/json' -d '{"username": "admin","email":"admin@kubesphere.io","cluster_role": "cluster-admin","password":"admin111111"}'