Loading video player...
Struggling with kubectl not working or API Server down issues in Kubernetes? In this hands-on tutorial, youβll learn how to debug Kubernetes like a real system administrator by exploring control plane internals, static pods, and kubelet behavior when the cluster breaks. This video focuses on real-world troubleshooting using kubeadm setup, showing how Kubernetes components run behind the scenes and how to recover when things go wrong. βοΈ Understand why kubectl fails when API Server is down π₯ Learn how control plane components run as static pods βοΈ Explore /etc/kubernetes/manifests (real cluster configs) π₯ See how kubelet acts as a watchdog and auto-recovers components βοΈ Debug Kubernetes without kubectl using crictl π₯ Analyze kubelet logs using journalctl βοΈ Inspect kube-apiserver YAML configuration (critical flags) π₯ Understand etcd data directory and cluster state storage βοΈ Real-world troubleshooting for Kubernetes admins & DevOps engineers π Watch the Full Kubeadm Labs Playlist: If you want to continue learning and building real multi-node Kubernetes clusters, check out our full playlist: [https://www.youtube.com/playlist?list=PL4y5PiOmBnA8-pXEE3Xwz28_QF-geOurS] π Commands Used in This Video: ssh control-plane-node cd /etc/kubernetes/manifests kubectl get nodes kubectl get pods -n kube-system sudo crictl ps sudo crictl ps -a sudo mv /etc/kubernetes/manifests/kube-apiserver.yaml /tmp/ sudo mv /tmp/kube-apiserver.yaml /etc/kubernetes/manifests/ systemctl status kubelet journalctl -u kubelet -f journalctl -u kubelet -n 20 sudo crictl logs container-id sudo cat /etc/kubernetes/manifests/kube-apiserver.yaml sudo ls /var/lib/etcd βΈοΈ Kubernetes Control Plane Deep Dive Chapters 0:00 - π― Intro: Control Plane Overview 0:32 - β οΈ The "Cluster Is Down" Scenario 1:24 - π Control Plane Components Recap 1:57 - ποΈ Static Pods vs. Normal Pods 3:08 - π¦ Understanding Static Pods 4:06 - π The /etc/kubernetes/manifests Directory 5:03 - ποΈ How Kubelet Manages Components 6:08 - π§ API Server & etcd Relationship 6:56 - π Internal Communication Flow 7:49 - π οΈ Common Failure Points 8:53 - π§ͺ Demo Overview 10:08 - π» Terminal: Locating Control Plane Manifests 11:49 - π₯ Simulating Failure (API Server Down) 13:05 - π Debugging with Kubelet & CRI-CTL 14:42 - π Restoring Manifests & Recovery 15:44 - π Analyzing API Server Configurations 17:01 - πΎ etcd Data & Local Storage 18:01 - π Summary & Best Practices π Subscribe for more real-world Kubernetes, DevOps, and troubleshooting tutorials π #Kubernetes #DevOps #kubectl #Kubeadm #Containerd