【问题标题】:Cannot retrieve needed files for okteto on Windows behind proxy无法在代理后面的 Windows 上检索 okteto 所需的文件
【发布时间】:2023-03-07 23:45:01
【问题描述】:

我正在尝试在 Visual Studio Code 上部署 okteto 环境以在 Kubernetes 上使用远程开发。

按照官方步骤(https://okteto.com/blog/remote-kubernetes-development/),我执行了“Okteto:up”并选择了清单(vscode-remote-go/okteto.yml),但得到了这个错误:

Installing dependencies...  
 x  couldn't download syncthing, please try again

通过更改日志级别,我还得到了这些日志:

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?

【问题讨论】:

    标签: kubernetes visual-studio-code proxy okteto


    【解决方案1】:

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

    目前,一种解决方法是手动下载syncthing二进制文件并将其保存为%HOME%\.okteto\syncthing.exe

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-12
      • 1970-01-01
      • 2018-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-25
      • 1970-01-01
      相关资源
      最近更新 更多