问题描述
在Ubuntu VM(在Windows上运行)上,我想安装Minikube.我的PC在公司代理后面运行.使用Proxifier,我可以访问Internet并在Ubuntu上运行Docker.不幸的是,看来Minikube无法连接到互联网...
On an Ubuntu VM (running on Windows) I would like to install Minikube. My PC in running behind a corporate proxy. Using Proxifier I manage to access Internet and run Docker on Ubuntu. Unfortunately it looks like Minikube can't reach the internet...
minikube start
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
Downloading Minikube ISO
无法下载ISO,但会遇到TLS握手超时...
The ISO can't be downloaded but it runs into a TLS handshake timeout...
推荐答案
您提到可以使用Proxifier建立代理.因此,您可以尝试使用类似方法来强制Minikube也使用Proxifier代理
You mentioned you could establish proxy using Proxifier.So, you could possibly try something like this to force Minikube use Proxifier proxy as well
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
指定为不应通过代理的ipaddress范围,因为这是minikube在其中生成其IP地址的范围(我认为)(而且我确定我没有其他东西)在该范围内)
Specifying 192.168.0.0/16
as the range of ipaddresses that shouldn't go through the proxy as this is the range (I think) that minikube generate it's IP addresses in (and I'm certain that I don't have anything else in that range)
有关Minikube的Github问题的更多详细信息,请参见 https://github.com/kubernetes/minikube /issues/2706
More details is available on Minikube’s Github issue https://github.com/kubernetes/minikube/issues/2706
这篇关于如何在Ubuntu VM上的Minikube中使用代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!