Pod, in Kubernetes, means a set of containers, which is also the smallest computing unit. You may have know about the basic usage of Pod in the previous recipes. Pods are usually managed by deployments and exposed by services; they work as applications with this scenario.
In this recipe, we will discuss two new features: DaemonSets and StatefulSets. These two features can manage Pods with more specific purpose.
What are Daemon-like Pod and Stateful Pod? The regular Pods in Kubernetes will determine and dispatch to particular Kubernetes nodes based on current node resource usage and your configuration.
However, a Daemon-like Pod will be created in each node. For example, if you have three nodes, three daemon-like Pods will be created and deployed to each node. Whenever a new node is added, DaemonSets Pod will be deployed to the new node automatically. Therefore, it will be useful to use node level monitoring or log correction.
On the other...