Skip to content

Minikube not working properly on ec2

0

I have been using minikube for months on ec2 instance but I start getting this error recently: ubuntu@ip-10-0-0-14:~/emlo4-assignment-14-4$ kubectl get all E0312 07:01:59.532422 6668 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://192.168.49.2:8443/api?timeout=32s\": net/http: TLS handshake timeout"

Can any one help? I've started minikube by: minikube start --memory=4096 --driver=docker. Also, tried with several combinations but getting the same error and the minikube is being stopped after some time for some reason.

asked a year ago271 views

3 Answers
0

Can you increase the memory allocation . Increase Resource Allocation: Sometimes, the default resource allocation might not be sufficient. You can try increasing the memory and CPU allocation.

minikube start --memory=8192 --cpus=4 --driver=docker
EXPERT

answered a year ago

  • if it solved your problem. kindly accept the answer so others could benefit too

0

It seems you're experiencing connectivity issues with your Minikube cluster on your EC2 instance. This problem could be caused by several factors:

  1. Resource constraints: Your EC2 instance might not have sufficient resources to run Minikube effectively. Ensure that your instance has enough CPU and memory to support Minikube and any other applications you're running.

  2. Network configuration: There might be issues with your EC2 instance's network settings, security groups, or VPC configuration that are preventing proper communication with the Minikube cluster.

  3. Minikube configuration: Your Minikube setup might need adjustment to work properly within the EC2 environment.

To troubleshoot this issue:

  1. Check your EC2 instance's resource utilization. Consider upgrading to a larger instance type if you're running low on resources.

  2. Verify your EC2 instance's security group settings to ensure that the necessary ports for Minikube communication are open.

  3. Try uninstalling and reinstalling Minikube, making sure you're using a version compatible with your EC2 instance's operating system.

  4. Examine the system logs on your EC2 instance for any error messages related to Minikube or network issues.

  5. Attempt to start Minikube with different driver options, such as '--driver=none' instead of '--driver=docker'.

  6. If the problem persists, consider testing your workload on a different EC2 instance type or in a different AWS region to isolate whether it's an instance-specific or region-specific issue.

If these steps don't resolve the issue, you may need to engage AWS support for more in-depth assistance, providing them with detailed logs, timestamps of the errors, and any other relevant information you've gathered from your troubleshooting efforts.
Sources
My E2 instance network connection and stability | AWS re:Post

answered a year ago

EXPERT

reviewed a year ago

0

It solved my problem when I started using this option to increase the memory allocation for minikube: Increase Resource Allocation: minikube start --memory=8192 --cpus=4 --driver=docker

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.