Video summary
kubernetes начало [DaemonSet, Taints, NodeSelector] [2025]
Main summary
Key takeaways
Summary
This beginner-focused Kubernetes tutorial explains DaemonSets and how to control which cluster nodes run pods using taints, tolerations, and nodeSelector.
DaemonSets
A DaemonSet ensures that one pod runs on each eligible node in a cluster. Unlike a Deployment, it does not use a replicas count; pod placement responds to the available nodes and the pod’s scheduling constraints.
DaemonSets are useful for node-level tasks such as collecting logs or gathering host metrics with tools like node-exporter. Their manifests resemble Deployment manifests, with a selector and pod template, but use kind: DaemonSet and do not include a replicas field.
DaemonSet pods often perform background tasks rather than serve network traffic, so a Service is commonly unnecessary.
In the demo, the DaemonSet initially runs on two worker nodes but not on the control-plane node, which has a taint.
Taints and tolerations
Taints mark nodes so that pods without a matching toleration are prevented—or discouraged—from running there. The tutorial covers three effects:
NoScheduleprevents new, non-tolerating pods from being scheduled on the node. Existing pods remain.NoExecutealso evicts existing pods that do not tolerate the taint.PreferNoScheduleexpresses a soft preference to avoid placing pods on the node.
A toleration in a pod specification allows the pod to run on a node with a matching taint. In the demo, adding a toleration for the control-plane node’s NoSchedule taint allows the DaemonSet pod to run there.
The presenter demonstrates adding and removing taints with kubectl taint. Applying a NoExecute taint evicts the DaemonSet pod from the affected worker node; removing the taint allows the DaemonSet controller to restore it. Because NoExecute can evict other non-tolerating pods, NoSchedule is often safer for this type of restriction.
Node labels and nodeSelector
nodeSelector schedules a pod only on nodes with specified labels. The presenter recommends using purpose-specific labels instead of node-name labels, which may change when nodes are replaced.
In the demo, selected nodes receive the label special=ds-only. Adding a matching nodeSelector to the DaemonSet’s pod template limits pods to those labeled nodes. Combined with the toleration, this includes the control-plane node but excludes an unlabeled worker.
Removing the labels leaves the DaemonSet in place but gives it no eligible pods. This illustrates how the controller continually reconciles pod placement as node labels and eligibility change.
Tolerations and nodeSelector are part of the pod template and can also be used with Deployments and StatefulSets. Node Affinity is mentioned as a more flexible but more complex alternative; it is not covered in the tutorial.
Tutorial and demonstrations
The video provides a hands-on walkthrough of DaemonSet manifests and kubectl commands for inspecting nodes, taints, labels, and pod placement; applying tolerations and node selectors; and observing how scheduling responds to changes.
Main speaker/source: Arthur Kryukov, the video’s presenter.
Rate this summary
Your feedback will help improve summaries.
Improve this summary
Reprocess with a stronger model when the summary feels incomplete or inaccurate.
Translate summary in another language
Ask questions to this video
Chat for follow-up questions, clarifications, and source-backed answers.