到Kubernetes的桥接无法启动,并显示“无法启动EndpointManager错误”

hujrc8aj  于 2023-02-07  发布在  Kubernetes
关注(0)|答案(1)|浏览(107)

我在Ubuntu 22.04.1上,我正在尝试在Visual Studio代码v1.74.3中启动到Kubernetes的桥。
但是,它会在“等待EndpointManager启动...”步骤中挂起几秒钟,然后崩溃,并显示一个没有提供信息的错误日志:

Error: connect-service-task-terminal-error <json>{}</json> <stack>Error: Failed to establish a connection. 
Error: An unexpected error occurred: 'Failed to launch EndpointManager.'\n
To see our active issues or file a bug report, please visit https://aka.ms/bridge-to-k8s-report.\n
For diagnostic information, see logs at '/tmp/Bridge To Kubernetes'.\n\n

我尝试过按照this GitHub issue thread中的建议设置环境变量,但它没有为我做这件事。

BRIDGE_BINARYUTILITYVERSION=v1
ylamdve6

ylamdve61#

我的同事认为,由于Bridge to Kubernetes在引擎盖下使用了dotnet,因此值得尝试分别安装dotnet SDK和dotnet环境,这为我解决了这个问题。
首先是dotnet SDK:

sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-6.0

和dotnet运行时:

sudo apt-get update && \
  sudo apt-get install -y aspnetcore-runtime-6.0

相关问题