rancher迁移账号密码
1. 登陆rancher容器获取user【docker部署和helm部署都一样,进到容器内都是同一路径】
$ kubectl get user
NAME AGE
u-222ms 82m
u-4j5jf 82m
u-b4qkhsnliz 139d
u-fvj64 83m
u-jn58d 84m
u-llw8l 83m
u-mo773yttt4 139d
u-p5n92 83m
u-sp8hj 83m
user-95w4j 139d
2. 编辑用户,直接把passwd字段复制过来覆盖即可,不需要解密,username字段就是当前用户
$ kubectl edit user user-95w4j
resourceVersion: "91737350"
uid: d1b7757b-179e-4846-8c0f-7222d13fe669
password: $2a$10$iuasdcasdcdcce82ch2c9h2YE5wer/9gJwPdXJv/VS37OkNS
principalIds:
- local://user-95w4j
spec: {}
status:
conditions: null
username: admin