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
UPDATE:
I have noticed just now , I am able to connect non-https URLs, but not https URLs
2
Answers
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
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 :
"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
Or else add dns in the config file in /etc/default/docker
Please check your container port and target port. This is my pod setup:
This is my service setup:
If your target port and container port don’t match, you will get a curl: (7) connection refused error(Source).
Checkout similar Stackoverflowlink for more information.