In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, Xiaobian will bring you about how to use GitRepo to complete the rapid development of Logstash. The article is rich in content and analyzed and described from a professional perspective. After reading this article, I hope you can gain something.
In the ELK in K8s demo, the basic mirror was built and the basic environment was built. In actual development deployments, GitRepo can be used to improve efficiency. This article will illustrate this by using the logstash pipeline, which changes frequently.
The logstash pipeline code is internal to the enterprise and not public.
The structure of files in this repository is as follows, and the meaning of files has been explained in demo.
.
├── logstash.conf
└── patterns
└── zstack
After making relevant changes to the logstash pipeline, submit it to git lab.
The gitrepo volume has been added to the logstash instance (see logstash git repo volume), and after deleting the logstash pod, replicaset-for-logstash will create a new logstash pod and pull the latest version of git repo as logstash configuration to maintain replicas=1.
(The following operations must be verified in the test environment before deployment to the production environment)
kubectl delete pod replicaset-for-logstash-xxxx
Should logstash be synchronized with git repo?
There is currently only one container in the pod logstash for running logstash processes. To keep logstash configuration in sync with git repo, a secondary container can be added to the pod (the running image can be obtained on the docker hub by searching for the keyword "gitrepo sync"). Two containers mount the same volume, and sidecontainer keeps synchronization with git repo.
Logstash is not recommended to synchronize with git repo. In some cases, changes are made to the logstash pipeline and you don't want to use the latest changes immediately, e.g., the old version of the pipeline needs to continue working for a while, and the modified pipeline needs to be submitted to git lab but needs to add new features.
The above is how to use GitRepo to complete the rapid development of Logstash. If there is a similar doubt, please refer to the above analysis for understanding. If you want to know more about it, please pay attention to 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.