Utilizing Minikube to Create a Single-Node Kubernetes Cluster on an EC2 Instance

Minikube is a great way to start learning Kubernetes. It creates a single-node cluster inside a Virtual Machine (VM) and you can run it easily on your laptop. In this post I will show how to install and run Minikube on an AWS EC2.

1. Provision an EC2 instance, SSH into it, install all necessary packages

2. Start Minikube and create our first cluster

3. Run container and expose port

4. Determine exposed container port number for EC2 instance

5. Edit security group to permit inbound access and access our container through web browser