In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. background
It is a very good choice to manage K8s cluster through rancher. Its own app store is very rich. For some applications, it can help us to achieve it quickly. The following is a record of using rancher to quickly deploy prometheus monitoring system and achieve persistent storage.
II. Implementation steps
Rancher version: v2.2.2
Shared storage: ceph RBD (v13.2.5 mimic version)
1. Prepare the storage class
The applications provided by the Rancher App Store can only be persisted by calling storage classes, so we need to prepare a storage class first. Storage classes can dynamically create PV, and prepare shared storage in advance according to your own needs. The storage supported by K8S storage class is as follows:
You can see that the commonly used NFS is not supported by K8S storage classes, but you can use nfs-provisioner to implement NFS to provide dynamic PV.
We use ceph RBD for this installation and the configuration is as follows:
2. Start prometheus monitoring
Select the project where the application is stored-- > Select App Store-- > Select launch-- > find prometheus, and click to enter the configuration page:
# customize the namespace to prometheus
# Custom prometheu domain name and shared storage size
# Custom grafana domain name and shared storage size
After configuration, click Save to see that the application is being deployed.
3. Wrap up the work
The storage class needs to call the secret connection store for verification, and the secret does not exist in our custom prometheus namespace, so add the corresponding secret to the namespace:
# just clone directly
Third, check
# pod status
# PV status
# image status of ceph
# traefik
# finally, you can access it through the domain name. The grafana deployed by rancher has already configured the template for us:
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.