User Tools

Site Tools


k8s:core:why_k8s

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
k8s:core:why_k8s [2026/05/31 02:45] phong2018k8s:core:why_k8s [2026/05/31 02:47] (current) phong2018
Line 26: Line 26:
 If your app runs 3 containers: If your app runs 3 containers:
  
 +
 +App Pod 1 → OK
 +App Pod 2 → CRASHED
 +App Pod 3 → OK
 +
 +
 +Kubernetes automatically:
 +  * Detects Pod 2 failure
 +  * Removes it
 +  * Creates a new Pod
 +
 +👉 No human needed
 +
 +---
 +
 +===== 3. Need for scaling =====
 +
 +Example:
 +
 +During peak traffic:
 +
 +
 +Normal: 3 pods
 +High traffic: 10 pods needed
 +
 +
 +Kubernetes can:
 +  * Add more pods automatically (autoscaling)
 +  * Remove them when traffic decreases
 +
 +---
 +
 +===== 4. Need for reliability =====
 +
 +Example:
 +
 +If a server dies:
 +
 +
 +Node 1 (dead)
 +Node 2 (running)
 +Node 3 (running)
 +
 +
 +Kubernetes:
 +  * Moves workloads from Node 1 to other nodes
 +
 +---
 +
 +===== 5. Need for consistency =====
 +
 +Example:
 +
 +Same app in:
 +  * Dev
 +  * Staging
 +  * Production
 +
 +Kubernetes ensures:
 +  * Same YAML works everywhere
 +  * Same behavior across environments
 +
 +---
 +
 +===== Summary =====
 +
 +Kubernetes exists to make systems:
 +  * Reliable
 +  * Scalable
 +  * Self-healing
 +  * Automated
k8s/core/why_k8s.1780195536.txt.gz · Last modified: by phong2018