Running Minikube on AWS EC2

Crishantha Nanayakkara
3 min readOct 26, 2022

--

An easy deployment guide

What is Minikube?

Minikube is a lightweight Kubernetes (K8) installation, which can create a Virtual Machine (VM) on your local machine or in a cloud instance, which deploys a simple cluster containing only one node.

If you want to explore Kubernetes (K8) in detail and if you do not want to waste your owe laptop space for that, installing it on a public cloud instance could be always an easy way out.

If you have an AWS account and if you want to try out some K8 features, this article will help you to get started.

Step 1: Create an AWS EC2 instance with Ubuntu 22

Create an EC2 instance with Ubuntu 22.04 (the latest for the moment) operating system.

Instance Size: t2.large with 2 CPUs, 32 GB Storage

(P.Note: this configuration will not be in a free tier and you will get billed for it. Therefore, pls make sure to shutdown the server instance, whenever you do not use it).

Step 2 : Install Docker

You may use the following link [2] to install Docker on the Ubuntu EC2 instance created under Step 1.

Step 3 : Install Kubectl

Kubectl is a utility to manage a K8 cluster. Hence it is required to install it before you configure / install the K8 cluster.

Once the Docker installation is completed, use the following link [3] to install Kubectl on it.

Step 4: Install Minikube

Once both Docker and Kubectl are installed, you may use following set of commands to install Minikube.

$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
$ sudo install minikube-linux-amd64 /usr/local/bin/minikube

You may get the assistance of the small wizard (Figure 01), shown on the web page link [4] to get the exact command to execute.

Figure 01

Thats it!. If all okay, you should be able to start Minikube without any issue.

Step 5: Start Minikube

Use the following command to start Minikube

$ minikube start

Figure 02 — Strarting Minikube

If all good, you will see a set of messages appear on the console (Figure 02).

Finally you may check the status of the installation with the following command. (Figure 03)

$ minikube status

Figure 03 — Checking the Minikube installation status

So now you are all set to explore Kubernetes world. All the very best!

References

  1. Minikube: https://minikube.sigs.k8s.io/docs/
  2. Installing Docker on Ubuntu 22.04 : https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04
  3. Installing Kubectl on Linux: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
  4. Installing Minikube: https://minikube.sigs.k8s.io/docs/start /

--

--

Crishantha Nanayakkara
Crishantha Nanayakkara

Written by Crishantha Nanayakkara

Enterprise Architect | Consultant @ FAO (UN) | Former CTO, ICTA Sri Lanka

Responses (2)