Kubernetes (pogosto okrajšano K8s) je odprtokodna platforma za orkestracijo vsebnikov (container orchestration). Avtomatizira nameščanje, skaliranje, mreženje in samodejno okrevanje vsebniških aplikacij na gruči (cluster) strojev, tako da opišete želeno stanje (desired state), Kubernetes pa neprestano dela, da resničnost uskladi z njim.
Problem: poganjanje vsebnikov v velikem obsegu je težko
You have containers (from Docker), but in production you must also answer:
→ On WHICH machine does each container run? (scheduling)
→ What if a container crashes? (self-healing / restarts)
→ What if a whole node dies? (reschedule elsewhere)
→ How do 50 replicas find and talk to each other? (service discovery)
→ How do I roll out a new version with zero downtime? (rolling updates)
→ How do I scale from 3 to 30 replicas on a traffic spike? (autoscaling)
Doing all this by hand across many servers does not scale.
