Kubernetes (K8s) (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is Kubernetes (K8s), and why is it needed over bare Docker containers?
junior LevelMost AskedDocker & ContainersKubernetes
In Simple Words: While Docker packages and runs individual containers on a single host, running distributed production systems requires managing hundreds of containers across dozens of physical or cloud servers. Kubernetes is an open-source container orchestration engine that automates:
- Service Discovery & Load Balancing: Exposes containers via stable IP addresses and distributes traffic.
- Automated Scheduling: Decides which server node runs each container based on CPU/RAM availability.
- Self-Healing: Automatically restarts crashed containers, replaces failed worker nodes, and kills non-responsive instances.
- Automated Rollouts & Rollbacks: Updates application versions gradually without downtime and rolls back if health checks fail.
- Horizontal Scaling: Scales container replica counts up or down based on CPU usage or custom metrics.