使用Kubernetes仪表板使用Kubectl代理远程访问多个用户
我在EKS中设置了Kubernetes群集。 API服务器访问处于私有模式。我有堡垒主机,可以从中运行kubectl命令。我想远程访问kubernetes仪表板。
我能做的一件事是SSH -L Localhost:8001:127.0.0.1:8001 @ kubectl代理。这将为我提供远程访问权限。
如果其他人将执行SSH -L localhost:8001:127.0.0.1:8001 @ kubectl代理,则会遇到错误。 “错误:听TCP 127.0.0.1:8001:绑定:已使用的地址”。因为其他人正在访问Kubectl代理。
如何解决这个问题。我想同时访问多台计算机上的Kubernetes仪表板。
I have setup kubernetes cluster in EKS. API server access is in private mode. I have bastion host from which i can run kubectl commands. I want to access kubernetes dashboard remotly.
One thing i can do is ssh -L localhost:8001:127.0.0.1:8001 @ kubectl proxy. this wil provide me an access remotly.
If somone else will execute ssh -L localhost:8001:127.0.0.1:8001 @ kubectl proxy then it will get an error. "error: listen tcp 127.0.0.1:8001: bind: address already in use". Because somebody else is accessing kubectl proxy.
How to solve this issue. I want to access kubernetes dashboard on multiple machine at the same time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论