Unable to connect to the server: dial tcp i/o time out
You can get relevant information about the client-server status by using the following command.
kubectl config view
Now you can update or set k8s context accordingly with the following command.
kubectl config use-context CONTEXT-CHOSEN-FROM-PREVIOUS-COMMAND-OUTPUT
you can do further action on kubeconfig file. the following command will provide you with all necessary information.
kubectl config --help
You have to run first
minikube start
on your terminal. This will do following things for you:
Restarting existing virtualbox VM for "minikube" ...
⌛ Waiting for SSH access ...
ð¶ "minikube" IP address is 192.168.99.100
ð³ Configuring Docker as the container runtime ...
ð³ Version of container runtime is 18.06.3-ce
⌛ Waiting for image downloads to complete ...
✨ Preparing Kubernetes environment ...
ð Pulling images required by Kubernetes v1.14.1 ...
ð Relaunching Kubernetes v1.14.1 using kubeadm ...
⌛ Waiting for pods: apiserver proxy etcd scheduler controller dns
ð¯ Updating kube-proxy configuration ...
ð¤ Verifying component health ......
ð kubectl is now configured to use "minikube"
ð Done! Thank you for using minikube!