In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What this article shares to you is about how to manage the log of Kubernetes cluster. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Kubernetes has developed an Elasticsearch add-on to implement log management in the cluster. This is a combination of Elasticsearch, Fluentd, and Kibana. Elasticsearch is a search engine responsible for storing logs and providing query interfaces; Fluentd is responsible for collecting logs from Kubernetes and providing a Web GUI to Elasticsearch;Kibana so that users can browse and search logs stored in Elasticsearch.
Deployment
The Elasticsearch add-on itself runs in the cluster as an application of Kubernetes, and its YAML configuration file is available from https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd-elasticsearch.
There is one thing to note here: later, we will access Kibana through NodePort, and we need to comment out the environment variable SERVER_BASEPATH in kibana-deployment.yaml, otherwise we cannot access it.
DaemonSet fluentd-es collects logs from each node and sends them to Elasticsearch.
Kibana runs as a Deployment resource, and users can access their Web GUI through Service kibana-logging. Here you have changed the type of Service to NodePort.
Kibana displays the Index Pattern creation page. Clicking Create,Kibana directly will automatically complete the subsequent configuration.
The Kubernetes log management system is ready, and users can create their own Dashboard as needed. For more information, please see the official Kibana documentation.
The Elasticsearch add-on itself will run in the cluster as an application of Kubernetes to achieve log management in the cluster. It is a combination of Elasticsearch, Fluentd and Kibana.
Elasticsearch is a search engine that stores logs and provides query interfaces.
Fluentd is responsible for collecting logs from Kubernetes and sending them to Elasticsearch.
Kibana provides a Web GUI that allows users to browse and search logs stored in Elasticsearch.
The above is how to manage the logs of the Kubernetes cluster. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.