繁体   English   中英

无法在本地机器中使用远程呈现访问 kubernetes 服务

[英]could not access kubernetes service using telepresence in local machine

我正在使用 Telepresense 调试 kubernetes(v1.15.2) pod,在我启动 Telepresence(v0.104) 后,我无法访问 kubernetes 服务。 当我在远程数据中心的主机中使用此命令获取 apache flink 的主页时:

curl http://10.254.77.184:8081/

我可以成功收到 http html 响应,我告诉我 apache flink 的 pod 工作正常。 但是当我在本地机器上获取主页时,它显示如下:

~/Library/Mobile Documents/com~apple~CloudDocs/Document/k8s/work/elk/elasticsearch/custom ⌚ 0:22:43
$ telepresence
T: How Telepresence uses sudo: https://www.telepresence.io/reference/install#dependencies
T: Invoking sudo. Please enter your sudo password.
Password:
T: Starting proxy with method 'vpn-tcp', which has the following limitations: All processes are affected, only
T: one telepresence can run per machine, and you can't use other VPNs. You may need to add cloud hosts and
T: headless services with --also-proxy. For a full list of method limitations see
T: https://telepresence.io/reference/methods.html
T: Volumes are rooted at $TELEPRESENCE_ROOT. See https://telepresence.io/howto/volumes.html for details.
T: Starting network proxy to cluster using new Deployment telepresence-1588609825-155246-24943

T: No traffic is being forwarded from the remote Deployment to your local machine. You can use the --expose
T: option to specify which ports you want to forward.

T: Connected. Flushing DNS cache.
T: Setup complete. Launching your command.

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
@default|bash-3.2$ curl -L http://10.254.77.184:8081/
curl: (52) Empty reply from server

那么我应该怎么做才能找出哪里出了问题? 以及如何解决这个问题?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM