本文永久链接: https://www.xtplayer.cn/rancher/rancher-not-display-global-monitoring/
有时候在 rancher ui 全局界面无法查看一些功能,比如全局监控,或者企业版无法在镜像仓库菜单中查看 harbor 配置等。这是一个历史遗留的 BUG,访问 server_url/v3/users?me=true
时可以看到多个用户具有 me: true
字段。
![image-20201201171735689](https://img-blog.csdnimg.cn/img_convert/c3e2de275949c87d1e627289d5933d52.png)
![image-20201201171745975](https://img-blog.csdnimg.cn/img_convert/4f8ff2c6563bec09cc3f6153a3baf695.png)
解决方法
在 local 集群或者 rancher server 容器中执行以下脚本:
注意:操作前先对 local 集群或者 rancher server 容器做数据备份。
|