美文网首页
kubesphere 重置admin账号密码

kubesphere 重置admin账号密码

作者: 与诗小睡 | 来源:发表于2021-05-12 22:06 被阅读0次
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"}'

相关文章

网友评论

      本文标题:kubesphere 重置admin账号密码

      本文链接:https://www.haomeiwen.com/subject/qoezdltx.html