How to restart my minikube kubernetes cluster in AWS instance, after stopping and starting that instance?

5/17/2018

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?

-- Shruthi Bhaskar
amazon-ec2
amazon-web-services
kubernetes
minikube

2 Answers

2/14/2020

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

-- Tiago Medici
Source: StackOverflow

3/28/2019

I had the same error. In my case minikube was not running. I started it with

minikube start
-- mkumar118
Source: StackOverflow