Daemon Sets ensure that a copy of a pod is present in all the nodes in the cluster.
Monitoring agents and log collectors are some usage of daemon sets
Kube-proxy, weave-net can be deployed as daemon sets
Daemon set is similar to replica set
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: monitoring-daemon
spec:
selector:
matchLabels:
app: monitoring-agent
template:
metadata:
labels:
apps: monitoring-agent
spec:
containers:
- name: monitoring-agent
image: monitoring-agent
kubectl create -f demon-det-definition.yaml
kubectl get daemonsets
//get daemon set from all
kubectl get daemonsets.apps --all-namespace