如何在 Ubuntu VM 上的 Minikube 中使用代理?
How to use proxy in Minikube on Ubuntu VM?
在 Ubuntu VM 上(运行ning 在 Windows 上)我想安装 Minikube。我的 PC 在 运行ning 后面有一个公司代理。使用 Proxifier,我设法访问互联网并在 Ubuntu 上访问 运行 Docker。不幸的是,Minikube 似乎无法连接到互联网...
minikube start
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
Downloading Minikube ISO
无法下载 ISO,但它 运行 进入 TLS 握手超时...
您提到您可以使用 Proxifier 建立代理。
所以,你可以尝试这样的事情来强制 Minikube 也使用 Proxifier 代理
export NO_PROXY="$NO_PROXY,192.168.0.0/16" # set the no_proxy env variable in the current shell.
minikube start --docker-env "HTTPS_PROXY=http://proxy:808" --docker-env "HTTP_PROXY=http://proxy:808" --docker-env "NO_PROXY=localhost,127.0.0.1,192.168.0.0/16" # start minikube and pass the same no_proxy setting to docker
指定 192.168.0.0/16
作为不应该通过代理的 IP 地址范围,因为这是 minikube 生成它的 IP 地址的范围(我认为)(我确定我不该范围内没有其他任何东西)
有关 Minikube 的 Github 问题 https://github.com/kubernetes/minikube/issues/2706
的更多详细信息
Minikube 1.0 (March 2019) now comes with PR 3834: "Automatically propagate proxy environment variables to docker env"
Currently, our documentation recommends that users use:
minikube start \
--docker-env=HTTP_PROXY=$HTTP_PROXY \
--docker-env HTTPS_PROXY=$HTTPS_PROXY \
--docker-env NO_PROXY=$NO_PROXY
This makes the setting of --docker-env
automatic if the environment variables are set.
在 PR 3835 中实施:"Plumb HTTP proxy configuration from host into VM environment"
Detect system proxy configuration from environment, and plumb them into the docker env and /etc/environment
within the VM by default.
在 Ubuntu VM 上(运行ning 在 Windows 上)我想安装 Minikube。我的 PC 在 运行ning 后面有一个公司代理。使用 Proxifier,我设法访问互联网并在 Ubuntu 上访问 运行 Docker。不幸的是,Minikube 似乎无法连接到互联网...
minikube start
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
Downloading Minikube ISO
无法下载 ISO,但它 运行 进入 TLS 握手超时...
您提到您可以使用 Proxifier 建立代理。 所以,你可以尝试这样的事情来强制 Minikube 也使用 Proxifier 代理
export NO_PROXY="$NO_PROXY,192.168.0.0/16" # set the no_proxy env variable in the current shell.
minikube start --docker-env "HTTPS_PROXY=http://proxy:808" --docker-env "HTTP_PROXY=http://proxy:808" --docker-env "NO_PROXY=localhost,127.0.0.1,192.168.0.0/16" # start minikube and pass the same no_proxy setting to docker
指定 192.168.0.0/16
作为不应该通过代理的 IP 地址范围,因为这是 minikube 生成它的 IP 地址的范围(我认为)(我确定我不该范围内没有其他任何东西)
有关 Minikube 的 Github 问题 https://github.com/kubernetes/minikube/issues/2706
的更多详细信息Minikube 1.0 (March 2019) now comes with PR 3834: "Automatically propagate proxy environment variables to docker env"
Currently, our documentation recommends that users use:
minikube start \
--docker-env=HTTP_PROXY=$HTTP_PROXY \
--docker-env HTTPS_PROXY=$HTTPS_PROXY \
--docker-env NO_PROXY=$NO_PROXY
This makes the setting of
--docker-env
automatic if the environment variables are set.
在 PR 3835 中实施:"Plumb HTTP proxy configuration from host into VM environment"
Detect system proxy configuration from environment, and plumb them into the docker env and
/etc/environment
within the VM by default.