Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Weave Scope to monitor the cluster

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to use Weave Scope to monitor the cluster, 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.

Creating a Kubernetes cluster and deploying containerized applications is only the first step. Once the cluster is up and running, we need to make sure that we are working together, that all the necessary components are in place and that we have sufficient resources to meet the needs of the application. Kubernetes is a complex system, and the operation and maintenance team needs a set of tools to help them know the real-time status of the cluster and provide timely and accurate data support for troubleshooting.

Focus on the monitoring schemes commonly used in Kubernetes.

Weave Scope

Weave Scope is a visual monitoring tool for Docker and Kubernetes. Scope provides a complete view of top-down cluster infrastructure and applications, and users can easily monitor and diagnose problems with distributed containerized applications in real time.

Install Scope

The way to install Scope is simple, execute the following command:

Kubectl apply-- namespace kube-system-f "https://cloud.weave.works/k8s/scope.yaml?k8s-version=$(kubectl version | base64 | tr-d'\ n')"

After a successful deployment, there are the following related components:

DaemonSet weave-scope-agent, the scope agent program that runs on each node of the cluster, is responsible for collecting data.

The Deployment weave-scope-app,scope application, which takes data from agent, displays it through Web UI and interacts with users.

Service weave-scope-app, which is ClusterIP by default, has been modified to NodePort through kubectl edit for convenience.

Use Scope

Browsers access http://192.168.56.106:30693/ http://192.168.56.106:30693/ scope to display all current Controller (Deployment, DaemonSet, etc.) by default.

Click HOSTS and the relationship between the nodes will be displayed.

Supported resources are Host, Pod, and Container.

Online operation

Scope also provides convenient online operation features, such as selecting a Host and clicking the > _ button to open the command line terminal of the node directly in the browser:

You can view Pod's log:

Powerful search function

Scope supports keyword search and location of resources.

The Weave Scope interface is extremely friendly, the operation is simple and smooth, and more features are left for you to explore.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report