Daemon sets

DaemonSets are like replicasets, as it helps in to deploy multiple instances of pod. But it runs one copy of your pod on each node in your cluster.

  • A DaemonSet is a Deployment that starts one Pod instance on every node in the cluster
  • This is useful in cases where a software component like an agent needs to be available on all cluster nodes
  • When nodes are added or removed, the DaemonSet automatically changes the number of Pods accordingly
  • Use YAML code to create DaemonSets
  • kubectl apply -f daemon.yaml
  • kubectl get ds,pods

image-20210810134158701

image-20210810134616991

Kube proxy:

image-20210810134634409

Networking:

image-20210810134649528

Create deamon sets

Creating a DaemonSet is similar to the ReplicaSet creation process. For DaemonSets, we start with apiVersion, kind as DaemonSets instead of ReplicaSet, metadata and spec.

image-20210810134845518

View deamon sets

image-20210810134929875

How it works

image-20210810134941623