首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RuntimeError:当使用远程存在时,群集的SSH无法启动

RuntimeError:当使用远程存在时,群集的SSH无法启动
EN

Stack Overflow用户
提问于 2020-02-21 09:35:21
回答 1查看 365关注 0票数 0

当我使用远程存在调试远程kubernetes时,抛出此错误:

代码语言:javascript
复制
RuntimeError: SSH to the cluster failed to start

这是详细的输出:

代码语言:javascript
复制
~ ⌚ 17:26: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 one telepresence can run
T: per machine, and you can't use other VPNs. You may need to add cloud hosts and headless services with --also-proxy. For a full list
T: of method limitations see 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-1582277212-643104-29913

Looks like there's a bug in our code. Sorry about that!

Traceback (most recent call last):
  File "/usr/local/bin/telepresence/telepresence/cli.py", line 135, in crash_reporting
    yield
  File "/usr/local/bin/telepresence/telepresence/main.py", line 68, in main
    socks_port, ssh = do_connect(runner, remote_info)
  File "/usr/local/bin/telepresence/telepresence/connect/connect.py", line 119, in do_connect
    args.from_pod
  File "/usr/local/bin/telepresence/telepresence/connect/connect.py", line 70, in connect
    raise RuntimeError("SSH to the cluster failed to start. See logfile.")
RuntimeError: SSH to the cluster failed to start. See logfile.


Here are the last few lines of the logfile (see /Users/dolphin/telepresence.log for the complete logs):

  50.2  37 | QoS Class:       Burstable
  50.2  37 | Node-Selectors:  <none>
  50.2  37 | Tolerations:     node.kubernetes.io/not-ready:NoExecute for 360s
  50.2  37 |                  node.kubernetes.io/unreachable:NoExecute for 360s
  50.2  37 | Events:
  50.2  37 |   Type    Reason     Age   From                    Message
  50.2  37 |   ----    ------     ----  ----                    -------
  50.2  37 |   Normal  Scheduled  38s   default-scheduler       Successfully assigned dabai-fat/telepresence-1582277212-643104-29913-7bb5765b6-7xflh to azshara-k8s01
  50.2  37 |   Normal  Pulled     35s   kubelet, azshara-k8s01  Container image "datawire/telepresence-k8s:0.104" already present on machine
  50.2  37 |   Normal  Created    34s   kubelet, azshara-k8s01  Created container telepresence-1582277212-643104-29913
  50.2  37 |   Normal  Started    34s   kubelet, azshara-k8s01  Started container telepresence-1582277212-643104-29913
  50.2 TEL | [37] ran in 0.50 secs.

我该怎么做才能解决这个问题?我的kubernetes服务器版本是1.15.2.客户端版本:1.17.3。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-14 15:32:23

在远程kuberentes集群主机上安装套接字,我使用的是CentOS,所以安装如下:

代码语言:javascript
复制
sudo yum install socat -y

如果使用ubuntu/debian,请按以下方式安装:

代码语言:javascript
复制
sudo apt-get install socat -y
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60335754

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档