In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
How to understand DaemonSet, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
DaemonSet is a Pod controller for specific application scenarios. Although it can also manage multiple copies of Pod, it is mainly used to ensure that only one Pod runs on a Node, as shown in the following figure:
DaemonSet ensures that at most one copy of Pod runs on a Node, and further, DaemonSet can choose a specific type of Node to deploy Pod. Here, when a selected type of Node joins the cluster, the Node automatically runs a new copy of the Pod, and when the Node is deleted, the corresponding Pod is deleted instead of being rebuilt on other Node.
Application scenario
DaemonSet ensures that at most one copy of the application runs on each worker node, which is similar to the daemon process in the Linux operating system, which is where the DaemonSet name comes from.
DaemonSet is typically used to manage applications that execute at the system level, such as:
Each worker node runs a storage service for use by other applications on that worker node
Each worker node runs a log collection service to collect the running logs on that node
Each work node runs a monitoring indicator collection service, which is used to provide monitoring information for that node.
Configuration format
Let's first look at a simple DaemonSet configuration:
ApiVersion: apps/v1kind: DaemonSetmetadata: name: nginx-daemonset labels: app: nginxspec: selector: matchLabels: app: nginx template: metadata: labels: app: nginxspec: containers:-name: nginx image: nginx:1.19.0
At first glance, this configuration is basically similar to Deployment, except that DaemonSet does not need to specify the number of replicas, because its number of replicas depends on the number of work nodes.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.