🚀 Kubernetes Setup (Local)
🟢 Minikube
Check
📦 POD
✅ What is Pod?
Smallest deployable unit in Kubernetes
Contains:
1 or more containers
same network
same storage
✅ Why Pod?
Because containers cannot run directly, they must run inside Pods.
🔹 Pod Commands
🔹 Create Pod (quick)
🔹 Pod YAML
🔹 Generate YAML automatically
🔁 REPLICASET
✅ What is ReplicaSet?
Ensures fixed number of pods always running
✅ Why?
If pod dies → auto recreate
🔹 Commands
🔹 ReplicaSet YAML
🔹 Generate YAML
🚀 DEPLOYMENT
✅ What is Deployment?
Manages ReplicaSets + updates
✅ Why?
✔ Rolling updates
✔ Rollback
✔ Zero downtime
🔹 Commands
🔹 Deployment YAML
🔹 Generate YAML
📊 METRICS SERVER
✅ What is Metrics Server?
Collects:
CPU
Memory
for:
HPA
kubectl top
🔹 Install (Minikube)
🔹 Test
⚡ HPA (Horizontal Pod Autoscaler)
What?
Auto scale pods based on CPU/memory
Flow
Deployment → Metrics Server → HPA → Auto scale
Yes bro 👇
👉 First create Deployment
👉 Then attach HPA
🔹 Command
🔹 Check
🔹 YAML
🖥️ DAEMONSET
🔷 What is DaemonSet?
Runs 1 pod on every node
🔷 Why?
Used for:
logging
monitoring
agents
Examples:
fluentd
node exporter
🔹 Commands
🔹 YAML
🔹 Generate YAML
🎨 kubecolor
🟢 kubecolor
Install
or
Use
Alias
Now all outputs colorful 😍
🧠 Quick Memory Trick
Remember this order:
👉 Pod = run
👉 RS = maintain count
👉 Deployment = updates
👉 HPA = scale
👉 DS = run everywhere
Comments
Post a Comment