Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
K8s Basics Kubernetes Kubernetes: From Zero to Production Module 1 - Kubernetes Fundamentals setup

Installing kubectl and minikube - Your First Cluster

Reviewed & accurate
AI Summary

What You Will Learn

Beginner

  • How to install kubectl (K8s CLI)
  • How to install minikube (local cluster)
  • How to verify your setup works

What You Need

ToolWhat it does
kubectlCommand-line tool to control K8s clusters
minikubeRuns a single-node K8s cluster on your laptop

Install kubectl

Terminalbash
# macOS
brew install kubectl

# Windows
choco install kubernetes-cli

# Linux
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/

Install minikube

Terminalbash
# macOS
brew install minikube

# Windows
choco install minikube

# Linux
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube
sudo mv minikube /usr/local/bin/

Start Your Cluster

Terminalbash
# Start minikube
minikube start

# Verify cluster is running
kubectl cluster-info

# Check nodes
kubectl get nodes

# Stop when done
minikube stop
minikube is for learning
minikube runs a single-node cluster on your laptop. Perfect for learning and development. For production, use a real multi-node cluster (EKS, GKE, AKS, or self-managed).

Practical Exercise

Install kubectl
Install minikube
Run: minikube start
Run: kubectl get nodes - should show 1 node
Run: kubectl cluster-info

Key Takeaways

  • kubectl = CLI to control K8s clusters.
  • minikube = local single-node cluster for learning.
  • Install both, then run minikube start.
  • Verify: kubectl get nodes shows your node.
  • For production: use EKS, GKE, AKS, or self-managed clusters.
Previously: Lesson 03 covered concepts.
Today: You learned: Set up a local K8s cluster in 10 minutes.
Next: Lesson 05 covers architecture.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments