Kubernestes interview questions
Core Kubernetes Concepts 1. What happens when you run kubectl apply -f deployment.yaml? API server receives request Validates YAML Stores desired state in etcd Scheduler assigns Pod to node Kubelet pulls image & starts container 2. Difference between Deployment, StatefulSet, and DaemonSet? Deployment → stateless apps (web apps) StatefulSet → stateful apps (DBs like MySQL) DaemonSet → runs one pod per node (logging, monitoring agents) 3. What is etcd? Distributed key-value store Stores cluster state (source of truth) 4. What is a Pod? Smallest deployable unit Can have one or multiple containers Shares network + storage 🔹 Networking (Very Important) 5. How does Kubernetes networking work? Each Pod gets unique IP Flat network (no NAT between pods) Uses CNI plugins (Calico, Flannel) 6. Difference between ClusterIP, NodePort, and LoadBalancer? ClusterIP → internal access NodePort → exposes via node IP LoadBalancer → cloud external LB 7. What is Ingress? HTTP/HTTPS routing Works with In...