backend / README.md

Kubernetes

1 min read index source

Kubernetes

Kubernetes is an open-source container orchestration platform for automating deployment, scaling, and management of containerized applications.

Key Concepts

Core Components

  • Pod: Smallest deployable unit (contains one or more containers)
  • Node: Worker machine (physical or virtual)
  • Cluster: Group of nodes managed together
  • Namespace: Virtual cluster within a physical cluster

Control Plane Components

  • API Server: Frontend for Kubernetes control plane
  • etcd: Consistent and highly-available key-value store
  • Scheduler: Watches for newly created Pods and assigns them to Nodes
  • Controller Manager: Runs controller processes

Workload Resources

  • Deployment: Manages replicated applications
  • Service: Exposes applications running on Pods
  • ConfigMap/Secret: Stores configuration data
  • PersistentVolume: Storage abstraction

Common Interview Questions

  1. What is the difference between Docker and Kubernetes?
  2. Explain the concept of Pods and why they exist
  3. What are the different types of Services in Kubernetes?
  4. How does Kubernetes handle scaling?
  5. Explain the role of etcd in Kubernetes
  6. What are the different deployment strategies?
  7. How to handle persistent storage in Kubernetes?
  8. Explain Kubernetes networking model
  9. What are ConfigMaps and Secrets?
  10. How does Kubernetes handle service discovery?
  11. Explain the concept of namespaces
  12. How to implement health checks in Kubernetes?
  13. What are the different types of probes?
  14. How to handle resource limits and requests?