Cluster Management 页面卡住

Rancher Server 设置

  • Rancher 版本:2.7
  • 安装选项 (Docker install/Helm Chart):
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:helm k3s
  • 在线或离线部署:在线

下游集群信息

  • Kubernetes 版本: v1.28.8+k3s1
  • Cluster Type (Local/Downstream): Local

用户信息

  • 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):admin
    • 如果自定义,自定义权限集:

主机操作系统:
Ubuntu 22

问题描述:
Cluster Management 页面卡住

重现步骤:
按照官方文档 安装 k3s,certmanager,rancher,能正常进主页,但是进入 Cluster Management 下的 config 时卡住。

结果:
下方有日志
截图


不止这一个位置,还有很多地方卡住,这台intelmac被卡的输入法都慢了
电脑突然间占用拉满

预期结果:

截图:

其他上下文信息:

日志
W0417 09:59:16.026269      33 warnings.go:80] cluster.x-k8s.io/v1alpha3 Machine is deprecated; use cluster.x-k8s.io/v1beta1 Machine
W0417 10:01:02.123605      33 warnings.go:80] cluster.x-k8s.io/v1alpha3 MachineHealthCheck is deprecated; use cluster.x-k8s.io/v1beta1 MachineHealthCheck
2024/04/17 10:01:41 [ERROR] Error during subscribe websocket: close sent
HEAD is now at 7e7f286 [release-v2.8] releasing forward-ported charts from dev-v2.7 fleet, rancher-cis-benchmark, rancher-aks-operator, rancher-eks-operator, rancher-gke-operator (#3755)
HEAD is now at 7e7f286 [release-v2.8] releasing forward-ported charts from dev-v2.7 fleet, rancher-cis-benchmark, rancher-aks-operator, rancher-eks-operator, rancher-gke-operator (#3755)
2024/04/17 10:02:02 [DEBUG] DesiredSet - No change(2) /v1, Kind=ServiceAccount cattle-system/git-webhook-api-service for apiservice git-webhook
2024/04/17 10:02:02 [DEBUG] DesiredSet - No change(2) /v1, Kind=Secret cattle-fleet-system/stv-aggregation for apiservice git-webhook
HEAD is now at 7e7f286 [release-v2.8] releasing forward-ported charts from dev-v2.7 fleet, rancher-cis-benchmark, rancher-aks-operator, rancher-eks-operator, rancher-gke-operator (#3755)
2024/04/17 10:02:03 [DEBUG] DesiredSet - No change(2) /v1, Kind=ServiceAccount cattle-system/git-webhook-api-service for apiservice git-webhook
2024/04/17 10:02:03 [DEBUG] DesiredSet - No change(2) /v1, Kind=Secret cattle-fleet-system/stv-aggregation for apiservice git-webhook
2024/04/17 10:02:15 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:15 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:15 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:15 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:15 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:15 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] 2024/04/17 10:02:16 http: superfluous response.WriteHeader call from github.com/rancher/rancher/pkg/version.(*versionHandler).ServeHTTP (version.go:53)
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:16 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:16 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:16 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.setting
2024/04/17 10:02:17 [DEBUG] opening watcher for namespace
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.feature
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.fleetworkspace
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.cluster
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] TokenStreamTransformer called
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.rancherusernotification
2024/04/17 10:02:17 [DEBUG] opening watcher for provisioning.cattle.io.cluster
2024/04/17 10:02:17 [DEBUG] opening watcher for provisioning.cattle.io.cluster
2024/04/17 10:02:17 [DEBUG] opening watcher for catalog.cattle.io.app
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] closing watcher for provisioning.cattle.io.cluster
2024/04/17 10:02:17 [DEBUG] WatchNames received error: event watch error: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] Skipping refresh for user-lnw8t due to max-age
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.nodepool
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.nodetemplate
2024/04/17 10:02:17 [DEBUG] opening watcher for catalog.cattle.io.clusterrepo
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.kontainerdriver
2024/04/17 10:02:17 [DEBUG] opening watcher for management.cattle.io.nodedriver
2024/04/17 10:02:18 [DEBUG] Extras returned map[principalid:[local://user-lnw8t] username:[admin]]
2024/04/17 10:02:18 [DEBUG] Triggering auth refresh on user-lnw8t
2024/04/17 10:02:18 [DEBUG] Skipping refresh for user-lnw8t due to max-age

看UI 截图是开源2.8.3 版本,但是 issue 描述部分(Rancher 版本)是 2.7,是写错了吗,还是又2.7升级到了 2.8.3版本?

能否打开浏览器控制台,看看:

  1. 有没有 js 报错
  2. 有没有哪个 API 请求延迟现象
  3. 有什么 API 返回了大量的数据

应该是我写错了.
我知道原因了,我用的 cloudflare 套的proxy,套了之后就打不开,关闭proxy 后 ssl也有问题