Rancher Server 设置
- Rancher 版本:v2.5.7
- 安装选项 (Helm Chart): helm install rancher rancher-stable/rancher --version=2.5.7 --namespace cattle-system --set hostname=xxxx.com --set ingress.tls.source=rancher --set replicas=2 --set auditLog.hostPath=/var/log/auditlog --set auditLog.level=1 --set auditLog.maxBackups=10 --set auditLog.maxSize=100
- 如果是 Helm Chart 安装,需要提供 Local 集群的类型(k3s)和版本:v1.19.5+k3s2
- 在线部署
下游集群信息
- Kubernetes 版本: v1.19.4
- Cluster Type (Downstream):
-自定义
用户信息
- 登录用户的角色是什么? (管理员):
- 如果自定义,自定义权限集:
**主机操作系统:centos7
**问题描述:*下游k8s集群 提示一个主控节点报错 Error Get “https://x.x.x.x:6443/api/v1/namespaces?timeout=45s”: tunnel disconnect *
*截图:
*
[rancher =“日志”]

2023/11/07 07:09:07 [ERROR] Unknown error: Get "https://x.x.x.x:6443/apis/extensions/v1beta1/namespaces/saas/ingresses?timeout=45s": context deadline exceeded
2023/11/07 07:09:07 [ERROR] failed on subscribe replicationController: Get "https://x.x.x.x:6443/api/v1/replicationcontrollers?resourceVersion=0&timeout=30m0s&timeoutSeconds=1800&watch=true": tunnel disconnect
E1107 07:09:07.506359 8 reflector.go:139] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *v1.Role: Get "https://x.x.x.x:6443/apis/rbac.authorization.k8s.io/v1/roles?allowWatchBookmarks=true&resourceVersion=12647598&timeout=7m8s&timeoutSeconds=428&watch=true": tunnel disconnect
E1107 07:09:07.506648 8 request.go:1011] Unexpected error when reading response body: tunnel disconnect
I1107 07:09:07.507570 8 trace.go:205] Trace[242591981]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168 (07-Nov-2023 07:08:08.638) (total time: 58869ms):
Trace[242591981]: [58.86945847s] [58.86945847s] END
E1107 07:09:07.507586 8 reflector.go:139] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *v1.ClusterRole: failed to list *v1.ClusterRole: Get "https://x.x.x.x:6443/apis/rbac.authorization.k8s.io/v1/clusterroles?resourceVersion=12647598": tunnel disconnect
I1107 07:09:07.507854 8 trace.go:205] Trace[1510293002]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168 (07-Nov-2023 07:08:09.772) (total time: 57735ms):
Trace[1510293002]: [57.735502618s] [57.735502618s] END
E1107 07:09:07.507865 8 reflector.go:139] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *v1.Service: failed to list *v1.Service: Get "https://x.x.x.x:6443/api/v1/services?resourceVersion=12647597": tunnel disconnect
I1107 07:09:07.509666 8 trace.go:205] Trace[157177730]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168 (07-Nov-2023 07:08:10.010) (total time: 57499ms):
Trace[157177730]: [57.499281259s] [57.499281259s] END
E1107 07:09:07.509732 8 reflector.go:139] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *v1.Endpoints: failed to list *v1.Endpoints: Get "https://x.x.x.x:6443/api/v1/endpoints?resourceVersion=12666265": tunnel disconnect
I1107 07:09:07.509977 8 trace.go:205] Trace[403112844]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168 (07-Nov-2023 07:08:06.233) (total time: 61276ms):
Trace[403112844]: [1m1.276573236s] [1m1.276573236s] END
E1107 07:09:07.510012 8 reflector.go:139] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *v1.Pod: failed to list *v1.Pod: unexpected error when reading response body. Please retry. Original error: tunnel disconnect
2023/11/07 07:09:07 [ERROR] failed on subscribe service: Get "https://x.x.x.x:6443/api/v1/services?resourceVersion=0&timeout=30m0s&timeoutSeconds=1800&watch=true": tunnel disconnect
2023/11/07 07:09:07 [ERROR] failed on subscribe pod: Get "https://x.x.x.x:6443/api/v1/pods?resourceVersion=0&timeout=30m0s&timeoutSeconds=1800&watch=true": tunnel disconnect
[/details]