The connection to the server 192.168.99.101:8443 was refused - did you specify the right host or port?

0 votes

Hi Guys,

I am trying to connect my minikube cluster. But it shows me the below error.

[root@localhost ~]# kubectl get pods
The connection to the server 192.168.99.101:8443 was refused - did you specify the right host or port?

How can I solve this error?

May 20 in Kubernetes by akhtar
• 25,210 points
354 views

1 answer to this question.

0 votes

Hi@akhtar,

This error may occur because of network connectivity. Minicube VM works only host only mode. So make sure that your client machine has host only adapter.

I suggest you to shutdown your cluster and check your network connectivity.

answered May 21 by MD
• 56,820 points

Related Questions In Kubernetes

0 votes
1 answer

Kubernetes error: Did you speciy the right host or port

Try and auto generate your kubeconfig. Use: gcloud container ...READ MORE

answered Jan 9, 2019 in Kubernetes by DareDev
• 6,850 points
386 views
+1 vote
0 answers

The connection to the server localhost:8080 was refused

$ kubectl get svc The connection to the ...READ MORE

Aug 8, 2019 in Kubernetes by Lakshminarayanan
11,190 views
0 votes
2 answers

Not able to expose port 80 on the host, kubernetes ingress

I was facing the same error. The nginix ...READ MORE

answered Sep 11, 2018 in Kubernetes by Kalgi
• 51,950 points
261 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
8,383 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,950 points

reshown Apr 12, 2019 by Kalgi 2,535 views
0 votes
1 answer