Skip to main content

Kubernetes Setup Made Super Simple: Minikube + Kubeadm (Step by Step)

Updated 8 min readMarkdown
Kubernetes Setup Made Super Simple: Minikube + Kubeadm (Step by Step)

Hey! 👋

If you've never touched Kubernetes before, don't worry. This guide is written for complete beginners — even if you're setting up your very first server, you can follow this.

We'll do two things:

  1. Set up Minikube — a tiny Kubernetes on your own laptop, just to learn and practice.

  2. Set up kubeadm — a real Kubernetes cluster with multiple computers, like companies use.

Everything here is copy-paste. You don't need to understand everything on day one. Just follow the steps in order.

All the scripts we use are here: github.com/mandgepratik/Kubernetes-Installation


Part 1: Minikube (Kubernetes on Your Own Laptop)

Think of Minikube as a "mini Kubernetes" you install just on your own computer, so you can play with it safely.

What you need before starting

  • A computer with Ubuntu (Linux) installed

  • Internet connection

  • A user account that can use sudo (basically, permission to install things)

Step 1: Get the files

Copy this into your terminal and press Enter:

git clone https://github.com/mandgepratik/Kubernetes-Installation.git
cd Kubernetes-Installation/minikube-installation

What this does: It downloads a folder with all the ready-made scripts, and moves you inside the Minikube folder.

Step 2: Install Docker

Docker is a tool that Kubernetes needs to work. Think of it as the "engine" that runs everything.

chmod +x docker-installation.sh
./docker-installation.sh

What this does, in plain words:

  • Updates your computer's software

  • Installs Docker

  • Turns Docker on

  • Lets your user account use Docker

⚠️ Very important — don't skip this!

After the script finishes, you need to log out and log back in (or restart your terminal). This is because your computer needs to "refresh" to know you're allowed to use Docker now.

After logging back in, check it worked:

docker --version
docker ps

If you see a version number and no errors, you're good. ✅

Step 3: Install kubectl and Minikube, and start your cluster

kubectl is the tool you'll use to "talk" to Kubernetes. minikube is the actual mini-cluster.

chmod +x minikube-installation.sh
./minikube-installation.sh

What this does:

  • Downloads and installs kubectl

  • Downloads and installs minikube

  • Starts a small Kubernetes cluster with 3 nodes (think of "nodes" as 3 small computers working together, but they're actually just running inside Docker on your one laptop)

This step can take a few minutes. That's normal — just wait.

Step 4: Check that it worked

kubectl get nodes

You should see something like 3 lines, each saying Ready. That means your Kubernetes cluster is alive and working! 🎉

kubectl cluster-info

This shows more details about your cluster.

🎈 Fun things to try now

# See what services are running
kubectl get svc

# Open a visual dashboard in your browser
minikube dashboard

That's it — you now have Kubernetes running on your own laptop!


Part 2: Kubeadm (A Real Multi Computer Kubernetes Cluster)

This part is for when you want to set up Kubernetes the way real companies do — with one "boss" computer (called the master) and one or more "worker" computers.

We'll do this on AWS EC2 (which just means renting small computers on the internet).

Computers you'll need

1 Master computer (the boss)

What Value
Type t3.small
Memory 2 GB
CPU 2
Storage 30 GB
Operating System Ubuntu 22.04

Worker computers (as many as you want)

What Value
Type t3.micro
Memory 1 GB
CPU 2
Storage 20 GB
Operating System Ubuntu 22.04

Before you start: Open the right doors (ports)

Computers talk to each other through "doors" called ports. You need to make sure the right doors are open in your AWS settings (called Security Groups).

On the Master computer, open these:

Port Why
22 So you can log in (SSH)
6443 So workers can talk to the master
2379–2380 Internal Kubernetes storage
10250 Internal communication
10251 Internal communication
10252 Internal communication

On each Worker computer, open these:

Port Why
22 So you can log in (SSH)
10250 Talking to the master
30000–32767 For apps you'll run later

💡 Easiest option if you're just practicing: Allow all traffic between your own computers (as long as they're in the same Security Group). Just make sure port 6443 is definitely open — this is the #1 reason clusters fail to connect.

Setting up the Master computer

Step 1: Get the files

git clone https://github.com/mandgepratik/Kubernetes-Installation.git
cd Kubernetes-Installation/kubeadm-installation

Step 2: Install Docker (do this on every single computer — master AND workers)

chmod +x docker-installation.sh
./docker-installation.sh

Step 3: Run the master setup script

chmod +x master-node.sh
./master-node.sh

What this one script quietly does for you (you don't need to do any of this by hand):

  • Names this computer "master"

  • Turns off a setting called "swap" (Kubernetes doesn't work if this is on)

  • Sets up some networking rules Kubernetes needs

  • Installs containerd (another engine, similar to Docker, that Kubernetes uses)

  • Installs kubeadm, kubelet, and kubectl (the main Kubernetes tools)

  • Starts up the Kubernetes cluster

  • Sets up your permissions so you can use kubectl

  • Installs networking so all the computers can talk to each other (this is called "Calico")

Step 4: Copy the join command

At the very end, this script will print something like this on your screen:

kubeadm join 172.31.10.5:6443 --token abcdef.1234567890xyz --discovery-token-ca-cert-hash sha256:xxxxxxxx

Copy this entire line and save it somewhere (like a notes app). You'll paste it into every worker computer in a minute.

Setting up each Worker computer

Do this on every worker computer you have.

Step 1: Get the files

git clone https://github.com/mandgepratik/Kubernetes-Installation.git
cd Kubernetes-Installation/kubeadm-installation

Step 2: Run the worker setup script

chmod +x *.sh
./worker-node.sh

What this does:

  • Gives this worker computer its own name

  • Turns off swap

  • Sets up the same networking rules as the master

  • Installs containerd

  • Installs kubeadm and kubelet

Step 3: Join the cluster

Now paste the command you saved from the master, but add sudo in front of it:

sudo kubeadm join 172.31.10.5:6443 --token abcdef.1234567890xyz --discovery-token-ca-cert-hash sha256:xxxxxxxx --v=5

(Use YOUR actual token and hash — the example above is just a placeholder.)

⏰ Heads up: That join command only works for 24 hours. If it's older than that, go back to the master computer and run this to get a fresh one:

kubeadm token create --print-join-command

Check that everything worked

Go back to the master computer and run:

kubectl get nodes

You should see something like:

master             Ready
worker-172-31-x    Ready
worker-172-31-x    Ready

If all of them say Ready, congratulations — you just built a real Kubernetes cluster! 🎉

You can also check that everything inside is healthy:

kubectl get pods -A

Everything should say Running.


A Few Things to Remember

  • ✅ Swap must be OFF on every computer (the scripts already do this for you)

  • ✅ All your AWS computers should be in the same network (VPC)

  • ✅ Every computer needs internet access

  • ✅ After running a script, wait 1–2 minutes before checking — things need a moment to settle

  • ✅ Port 6443 must be open between master and workers, always


Which One Should You Try First?

  • 🟢 Total beginner? Just want to learn? → Do Minikube first. It's on your own laptop, nothing to break.

  • 🔵 Feeling confident and want the real experience? → Try kubeadm on AWS EC2.

Both are fully scripted — you don't need to memorize anything or type long commands by hand. Just clone, run, and follow along.

🔗 Get all the scripts here: github.com/mandgepratik/Kubernetes-Installation

If you get stuck anywhere, drop a comment below. I'll help you out. You've got this! 💪

📌Copyright © Pratik R. Mandge, 2026. All rights reserved.

This article and its content are protected by copyright law. Reproduction or distribution of this article without the author's permission is prohibited. For inquiries, please contact pratikmandge021@gmail.com

About the author

  • Hey there! 👋

    I'm Pratik R. Mandge, a DevOps Engineer passionate about all things AWS DevOps Technology. Currently on a learning adventure, I'm here to share my journey and Blog's in the world of cloud and DevOps.

    🛠️ My focus? Making sense of AWS services, improving CI/CD, and diving into infrastructure as code. Whether you're fellow interns or curious enthusiasts, let's grow together in the vibrant DevOps space.

    🌐 Connect with me for friendly chats, shared experiences, and learning moments. Here's to embracing the learning curve and thriving in the exciting world of AWS DevOps Technology!

    Follow me on LinkedIn: https://www.linkedin.com/in/pratik-mandge363

No comments yet. Be the first to comment.

More from this blog