搞定了
kubectl -n kubesphere-system exec -it ks-account-dd8b48997-6xr6g sh
进入这个容器,跑这个命令修改成功,packet='PUT /kapis/iam.kubesphere.io/v1alpha2/users/admin HTTP/1.1\r\nHost: ks-account.kubesphere-system.svc:9090\r\nUser-Agent: curl/7.54.0\r\nAccept: /\r\nContent-Type: application/json\r\nContent-Length: 105\r\n\r\n{“username”: “admin”,“email”:"admin@
kubesphere.io",“cluster_role”: “cluster-admin”,“password”:“P@88w0rd”}'; echo -ne $packet | nc ks-account.kubesphere-system.svc 80