Loading video player...
Code:- ===== apiVersion: apps/v1 kind: DaemonSet metadata: name: test-daemonset labels: env: test spec: selector: matchLabels: env: test template: metadata: labels: env: test spec: containers: - name: daemonset-container image: ubuntu imagePullPolicy: IfNotPresent command: ["/bin/bash", "-c", "while true; do echo 'This is Daemonset object'; sleep 15; done"] =========================== kubectl apply -f daemonset.yml kubectl get ds kubectl get pods kubectl get pods -o wide kubectl get pods --show-labels kubectl delete pod pod-name kubectl get pods -o wide kubectl get pods --show-labels kubectl logs -f test-daemonset-tlmkk kubectl get pods -o wide -w kubectl delete -f daemonset.yml This video explains DaemonSet from the ground up: ✔ Real-time requirement behind DaemonSet ✔ Why Deployment is not suitable despite of being powerful ✔ One pod per node concept explained clearly ✔ DaemonSet architecture and internal flow ✔ Monitoring and logging real-world example ✔ Full DaemonSet YAML explained line by line ✔ Step-by-step kubectl commands ✔ Pod recreation behavior ✔ What happens when new nodes join the cluster ✔ Comparison with Deployment, ReplicaSet, and StatefulSet You will also understand how DaemonSet works at node level, not application scaling level, and why it forms the foundation for cluster-level services like monitoring agents, logging collectors, and networking components. This session is especially useful if you are keen on: • Kubernetes fundamentals • DevOps and cloud engineering • Real-time cluster behavior • Interview preparation • Production-level Kubernetes understanding By the end of this video, you will clearly know when to use DaemonSet, how to write DaemonSet YAML, and how Kubernetes eventually manages pods automatically when nodes are added or removed. 👉 Subscribe for more real-time Kubernetes and DevOps content.