Hi,
I am trying to run fabric8 on Kubernetes with the help of minikube.
I am working behind a corporate proxy with authentication enabled.
I am running Ubuntu 16.04.3 LTS.
And I have set http_proxy, http_proxy and and no_proxy on /etc/environment.
And then I have started minikube (with virtualbox) with the below command.
minikube start --memory 6000 --docker-env http_proxy=http_proxy=http://username:password@ourproxy:port --docker-env https_proxy=https://username:password@ourproxy:port --docker-env no_proxy=
192.168.99.0/24
I have verified the proxy settings with docker info command inside minikube.
I believe pulling docker images is also working without any issues.
But if I try to clone a git repo inside minikube, it will fail due to SSL error.
When I captured the packets in Ubuntu with wireshark, it is found that git command is not using proxy settings.
If I add an environment variable inside minikube like below, git clone will succeed.
export https_proxy=https://username:password@ourproxy:port
This is not to be confused with the docker env.
This is inside the minikube shell.
basil@Fabric8-Kubernet-Server:~$ minikube ssh
<--->
$ docker env
<--->
Http Proxy: http://username:password@ourproxy:port
Https Proxy: https://username:password@ourproxy:port
$ env
<--->
Exporting proxy and it is shown in env
$ export https_proxy=https://username:password@ourproxy:port
$ env
<--->
https_proxy=https://username:password@ourproxy:port
Unfortunately this settings seems to go away, if I logout and login again to minikube(without stop/start).
If I add these settings in /etc/profile, it can survive logout and login. But it is wiped with stop/start.
So is there any way to set the proxy settings in minikube shell along with docker.
I believe this is required for getting rid of SSL error during fabric8 deployment.
Thanks,
Basil.