操作系统信息
虚拟机机,Centos7,4C/8G, 8C16G, 18C24G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.5", GitCommit:"aea7bbadd2fc0cd689de94a54e5b7b758869d691", GitTreeState:"clean", BuildDate:"2021-09-15T21:10:45Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.5", GitCommit:"aea7bbadd2fc0cd689de94a54e5b7b758869d691", GitTreeState:"clean", BuildDate:"2021-09-15T21:04:16Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
Client: Docker Engine - Community
Version: 20.10.14
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 24 01:49:57 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.14
API version: 1.41 (minimum version 1.12)
Go version: go1.16.15
Git commit: 87a90dc
Built: Thu Mar 24 01:48:24 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.11
GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc:
Version: 1.0.3
GitCommit: v1.0.3-0-gf46b6ba
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
v3.3.2,在线安装,kk安装
问题是什么
我开启了kubesphere提供的集群网关,然后在给 ks-console创建了ingress,其他方面表现比较正常,但是在
1)容器终端和kubectl工具总是会出现下图的情况。另外,即使正常连接,
2)过不了一会儿就会又断开,无法输入,只能刷新。
这是 ks-apiserver的日志:
W1227 20:01:23.328215 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
W1227 20:02:12.134857 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E1227 20:04:14.874194 1 v2.go:105] websocket: close 1006 (abnormal closure): unexpected EOF
W1227 20:04:16.878131 1 terminal.go:152] 1Process exited
W1227 20:04:21.359187 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E1227 20:04:26.778671 1 v2.go:105] websocket: close 1001 (going away)
W1227 20:04:27.256217 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
W1227 20:04:28.781930 1 terminal.go:152] 1Process exited
E1227 20:05:39.606434 1 v2.go:105] websocket: close 1001 (going away)
W1227 20:05:47.610127 1 terminal.go:152] 1Process exited
W1227 20:05:55.741274 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
W1227 20:09:50.111617 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
W1227 20:10:10.842945 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E1227 20:10:53.472311 1 v2.go:105] websocket: close 1006 (abnormal closure): unexpected EOF
W1227 20:10:55.476186 1 terminal.go:152] 1Process exited
E1227 20:11:50.623505 1 v2.go:105] websocket: close 1006 (abnormal closure): unexpected EOF
W1227 20:11:52.626855 1 terminal.go:152] 1Process exited
W1227 20:18:04.696295 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E1227 20:18:07.110820 1 v2.go:105] websocket: close 1001 (going away)
W1227 20:18:07.285319 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
W1227 20:18:09.116394 1 terminal.go:152] 1Process exited
E1227 20:18:10.098063 1 v2.go:105] websocket: close 1001 (going away)
W1227 20:18:10.251412 1 handler.go:86] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
W1227 20:18:12.103043 1 terminal.go:152] 1Process exited
应该调整 ingress的注解配置吗?