Agar Docker containers factory me bante hain, toh Kubernetes unka manager hai. Real DevOps yahin se large-scale hota hai.
Docker sirf container chalata hai. Par production me problems aati hain:
Iska answer hai: Kubernetes (K8s)
Kubernetes ek container orchestration system hai jo:
Google ne banaya, industry ne adopt kiya.
👉 Container directly nahi, pod ke andar chalta hai.
Pod ek wrapper hai jo:
Production me rarely single container pods.
Deployment batata hai:
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-app
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: nginx
Yeh ensure karta hai: 3 pods always running.
Pods ka IP dynamic hota hai. Service ek stable endpoint provide karta hai.
kubectl get pods
kubectl get nodes
kubectl apply -f app.yaml
kubectl delete pod pod-name
kubectl = Kubernetes ka remote control.
Isliye pehle Docker + CI/CD samajhna zaruri tha.
DevOps engineers:
Understanding > memorizing.
Ab containers production me chal rahe hain. Next step: Cloud platforms (AWS/GCP/Azure)
Next Part → Cloud for DevOps