I had a t2.micro server running where i had deployed Minikube, however due to memory issue i scared up the server size. For which i had to stop and start the instance.
But now after restarting, when i try with kubectl commands i get the below error.
root@ip-172-31-23-231:~# kubectl get nodes
The connection to the server 172.31.23.231:6443 was refused - did you
specify the right host or port?
So, how can i bring my earlier kube cluster up once i restart my AWS instance?
check this : run -> minikube status
host: Running
kubelet: Running
apiserver: Running
kubectl: Correctly Configured: ...
if isn't running -> minikube start
then check the dashboard -> minikube dashboard
I had the same error. In my case minikube was not running. I started it with
minikube start