Kubernetes में Pod क्या है 📦
1️⃣ Pod क्या है
Pod Kubernetes की सबसे छोटी deployable unit है जिसमें एक या एक से ज्यादा containers run होते हैं।
One line (Interview):
👉 Pod Kubernetes की smallest deployment unit है जिसमें containers run होते हैं।
2️⃣ Pod क्यों होता है
Containers directly Kubernetes में run नहीं होते।
Kubernetes containers को Pod के अंदर run कराता है।
Reason:
- containers को same network देना
- containers को shared storage देना
- containers को एक logical unit बनाना
Example
Pod
├── Container 1
└── Container 2
3️⃣ Pod क्या-क्या काम करता है
1️⃣ Containers run करता है
Application containers Pod के अंदर run होते हैं।
Example
Pod
└── Nginx container
2️⃣ Shared Network देता है
Pod के अंदर सभी containers same IP address share करते हैं।
Pod IP = 10.1.2.5
Containers communication:
localhost
3️⃣ Shared Storage देता है
Containers shared volumes use कर सकते हैं।
Example
logs
config files
data sharing
4️⃣ Application unit बनाता है
Pod एक logical application unit होता है।
4️⃣ Pod किस-किस से connection रखता है
1️⃣ kubelet
Node पर kubelet pod run और monitor करता है।
kubelet → Pod
2️⃣ Container Runtime
Pod के अंदर containers run होते हैं।
Example
Docker
containerd
CRI-O
Flow
Pod → container runtime → container
3️⃣ kube-proxy
Networking manage करता है।
Service → kube-proxy → Pod
4️⃣ Service
Pods usually services के through expose होते हैं।
Service → Pod
5️⃣ kube-apiserver (Indirect)
Pod information API server के through manage होती है।
Flow
kubectl
↓
kube-apiserver
↓
scheduler
↓
kubelet
↓
Pod run
5️⃣ Real Flow Example
Command:
kubectl run nginx --image=nginx
Flow:
kubectl
↓
kube-apiserver
↓
scheduler choose node
↓
kubelet
↓
container runtime
↓
Pod created
6️⃣ One Line Memory Trick 🧠
👉 Pod = Kubernetes की smallest unit जिसमें containers run होते हैं।
या
👉 Pod is a wrapper around containers in Kubernetes.
7️⃣ Super Simple Kubernetes Memory Trick 🔥
Kubernetes में Application Layer
Deployment
ReplicaSet
Pod
Container
और infrastructure layer
Node
kubelet
kube-proxy
container runtime


Top comments (0)