kubectl DaemonSets commands

14 commands in 3 groups: Manage, Rollout, List & Inspect. Click or tap any command to copy it. Official documentation: kubernetes.io.

Open in the interactive cheat sheet search, stars and every other section

Manage

Create, update, and delete DaemonSets. Control which nodes they run on using node selectors.
kubectl apply -f daemonset.yaml
Apply DaemonSet from manifest
kubectl delete daemonset <name>
Delete a DaemonSet and all its pods
kubectl edit daemonset <name>
Edit DaemonSet in $EDITOR
kubectl set image ds/<name> <container>=<image>
Update container image

Rollout

Track, restart, and roll back DaemonSet updates across all nodes.
kubectl rollout history daemonset/<name>
Show revision history
kubectl rollout restart daemonset/<name>
Trigger a rolling restart on all nodes
kubectl rollout status daemonset/<name>
Watch rollout progress across nodes
kubectl rollout undo daemonset/<name>
Rollback to previous revision

List & Inspect

View DaemonSets and how many pods are scheduled, ready, and available across nodes.
kubectl describe daemonset <name>
Full DaemonSet details and events
kubectl get daemonsets
List DaemonSets in current namespace
kubectl get ds
Short alias for get daemonsets
kubectl get daemonset <name> -o yaml
Get DaemonSet manifest as YAML
kubectl get daemonsets -A
All DaemonSets across namespaces
kubectl get daemonsets -n <namespace>
DaemonSets in a specific namespace