Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连接在短时间内无输入时会自动断开连接(默认时间太短了) #12

Closed
skycyan opened this issue Jul 14, 2020 · 3 comments

Comments

@skycyan
Copy link

skycyan commented Jul 14, 2020

通过Web界面已经连接上K8s,可是几秒中不输入就会断开连接。这个时间太短了,应该也就几秒钟。
是否可以让这个时间配置由用户自己来指定自动断开的时间呢?

@liqiang-fit2cloud
Copy link
Collaborator

我们这用的都挺好的,没有遇到你说的问题。
你是用了代理了么,nginx或者haproxy之类的?

@liqiang-fit2cloud
Copy link
Collaborator

@skycyan
Copy link
Author

skycyan commented Jul 14, 2020

看了你的fork和commit,zops @ 3edd3fb
如果你要在k8s中部署webkubectl,那么你的ingress要支持websocket。
请参考:
https : //github.com/kubernetes/ingress-nginx/blob/master/ docs / user-guide / nginx-configuration / annotations.md#configuration-snippet
https://stackoverflow.com/questions/52883653/nginx-ingress-controller-websocket-support
https://blog.xujiuming.com/ming/ 9c16d977.html

谢谢您的帮助。
目前ingress支持websocket,经过您给的提示,排查了ingress前端代理(nginx tcp代理多个ingress),导致自动断开的原因是proxy_timeout参数导致。将该时间增大解决问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants