kubernetes - 无法在代理后面的 Windows 上检索 okteto 所需的文件
问题描述
我正在尝试在 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 代理设置。当我直接输入 URL(https://github.com/syncthing/syncthing/releases/download/v1.10.0/syncthing-windows-amd64-v1.10.0.zip)时,可以使用代理下载。
是否可以在代理后面使用 okteto?
解决方案
Okteto 目前不支持使用代理。我们正在调查它。
目前,一种解决方法是手动下载 syncthing 二进制文件并将其另存为%HOME%\.okteto\syncthing.exe
推荐阅读
- java - Spring-boot:run 有效,但 java-jar 无效
- objective-c - 文件中缺少所需的架构 armv7?问
- android - 无法解决:android studio 中的运行时
- node.js - Windows 10 中 NVM 的访问被拒绝问题
- ubuntu-16.04 - sudo apt-get 更新 Ubuntu 16.04 时出现 Bazel Key Expired Error
- ruby-on-rails - Rails 创建新表后出现错误
- ios - FCM 是直接发送推送通知还是向 APNS 发送消息?
- python - 将 Tensorflow 中除最大值之外的所有值归零
- can-bus - 接收 Can BUS 帧 Qt 和 PeakCan USB 适配器
- javascript - 提交后弹出消息