cluster info:
Minikube installation steps on centos VM:
curl -LO https://storage.googleapis.com/minikube/releases/v1.21.0/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start --addons=ingress --vm=true --memory=8192 --driver=none
PODs of this minikube cluster are not able to connect to internet.
However My host VM has internet connection with no firewall or iptables setup.
Can anybody help me debug this connection refused error
CodePudding user response:
How you have started the Minikube on the VM ? Which command did you used ?
If you are using the minikube --driver=docker
it might won't work.
for starting the minikube on VM you have to change the driver
minikube --driver=none
in docker driver, it will create the container and install the kubernetes inside it and spawn the POD into further.
Check more at : https://minikube.sigs.k8s.io/docs/drivers/none/
if you on docker you can try :
pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
"It will force docker to recreate the bridge and reinit all the network rules"
reference : https://github.com/moby/moby/issues/866#issuecomment-19218300
Try with
docker run --net=host -it ubuntu
Or else add dns in the config file in /etc/default/docker
DOCKER_OPTS="--dns 208.67.222.222 --dns 208.67.220.220"
CodePudding user response:
You have to update the Git Config for proxy setting
Updated the http.proxy key in git config by following command
git config --global http.proxy http[s]://username:password@proxyaddress:port
Check out How to configure Git proxy for more details
If your username is an email address, which has @, also encode it to @.
git config --global http.proxy http[s]://username(encoded):password(encoded)@proxyaddress:port
Checkout this Github Issue and similar Stackoverflow link for more information