首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在代理后的Windows上检索所需的okteto文件

无法在代理后的Windows上检索所需的okteto文件
EN

Stack Overflow用户
提问于 2021-09-13 05:22:20
回答 1查看 175关注 0票数 1

我试图在Visual代码上部署okteto环境,以便在Kubernetes上使用远程开发。

按照正式步骤(https://okteto.com/blog/remote-kubernetes-development/),我执行了"Okteto: up“并选择了清单(vscode-remote go/okteto.yml),但得到了以下错误:

代码语言:javascript
复制
Installing dependencies...  
 x  couldn't download syncthing, please try again

通过更改日志级别,我还得到了以下日志:

代码语言:javascript
复制
C:\Users\user\AppData\Local\Programs\okteto.exe up -f 'c:\Workspace\...my_project...\vscode-remote-go\okteto.yml' --remote '22100' --loglevel=debug
time="2021-09-13T14:09:32+09:00" level=info msg="starting up command"
time="2021-09-13T14:09:32+09:00" level=info msg="failed to get latest version from github: fail to get releases from github: Get \"https://api.github.com/repos/okteto/okteto/releases?per_page=5\": dial tcp: lookup api.github.com: no such host"
Installing dependencies...
time="2021-09-13T14:09:32+09:00" level=info msg="installing syncthing for windows/amd64"
time="2021-09-13T14:09:32+09:00" level=info msg="failed to download syncthing, retrying: failed to download syncthing from https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip: Get \"https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip\": dial tcp: lookup github.com: no such host"
time="2021-09-13T14:09:33+09:00" level=info msg="installing syncthing for windows/amd64"
time="2021-09-13T14:09:33+09:00" level=info msg="failed to download syncthing, retrying: failed to download syncthing from https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip: Get \"https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip\": dial tcp: lookup github.com: no such host"
time="2021-09-13T14:09:34+09:00" level=info msg="installing syncthing for windows/amd64"
time="2021-09-13T14:09:34+09:00" level=info msg="failed to upgrade syncthing: failed to download syncthing from https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip: Get \"https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip\": dial tcp: lookup github.com: no such host"
time="2021-09-13T14:09:34+09:00" level=info msg="couldn't download syncthing, please try again"
 x  couldn't download syncthing, please try again

此环境在我的公司代理之后,okteto.exe可能不使用Windows设置。当我直接输入网址(https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip)时,可以使用代理下载它。

可以在代理后面使用okteto吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-09-13 17:19:11

目前,Okteto不支持使用代理。不过我们正在调查。

现在,解决办法是手动下载同步二进制文件,并将其保存为%HOME%\.okteto\syncthing.exe

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69157624

复制
相关文章

相似问题

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