Kubernetes Cluster Log Management-5 minutes a day to play Docker container technology (180)

Source: Internet
Author: User
Tags kibana fluentd

Kubernetes has developed a Elasticsearch add-on to enable log management of the cluster. This is a combination of Elasticsearch, FLUENTD and Kibana. Elasticsearch is a search engine that is responsible for storing logs and providing query interfaces; Fluentd is responsible for collecting logs from Kubernetes and sending Elasticsearch;kibana a Web GUI that users can browse and search for stored in Logs in the Elasticsearch.

Deployment

The Elasticsearch add-on itself is run as a Kubernetes application in the cluster, and its YAML configuration file can be Https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd-elasticsearch get.

addons     kubectl apply-f addons/   deployment.

Here's one thing to note: We'll visit Kibana by Nodeport later, we need to comment out   kibana-deployment.yaml  ; server_basepath

all of the resources are deployed in kube-system in the Namespace.

Daemonset fluentd-es logs are collected from each node and sent to Elasticsearch.

elasticsearch to StatefulSet Resources run, and through service  elasticsearch-logging   provides interfaces externally. The type of Service has been passed  , kubectl edit   Modified to Nodeport.

available through http://192.168.56.106:32607/ Verify that the Elasticsearch is working correctly.

kibana is run with Deployment resources, the user can pass service  kibana-logging   Access its Web GUI. The type of Service has been modified to nodeport.

through http://192.168.56.106:30319/ Access Kibana.

Kibana will display the Index Pattern creation page. Direct Click Create , Kibana will automatically complete the subsequent configuration.

In the top left corner Discover , click you can view and retrieve the Kubernetes log.

Kubernetes Log Management system is ready, users can create their own Dashboard as needed, specific methods can refer to Kibana official documentation.

Summary

The Elasticsearch add-on itself is run as a Kubernetes application in the cluster to enable log management of the cluster. It is a combination of Elasticsearch, FLUENTD and Kibana.
Elasticsearch is a search engine that is responsible for storing logs and providing 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 for logs stored in Elasticsearch.

written in the last

As a practical tutorial for Kubernetes, we have come to the end of the place.

This tutorial covers the most important technologies of Kubernetes: Cluster architecture, containerized application deployment, scale up/down, rolling update, monitoring and inspection, cluster networking, data management, monitoring, and log management, and the operation mechanism of Kubernetes is explored through a large number of experiments.

The goal of this tutorial is to enable readers to master the skills necessary to implement and manage Kubernetes, and to really use Kubernetes.

In order to achieve this goal, each chapter has designed a large number of practical operations, through and logs to help readers understand the various technical points, at the same time for the reader to practice Kubernetes to provide detailed reference.

This tutorial should have two roles for readers:

    1. Beginners can systematically learn Kubernetes in the order of chapters, and Master Kubernetes's theoretical knowledge and practical skills through the experiments in the tutorials.

    2. Experienced OPS personnel can use this tutorial as a reference material to view relevant knowledge points in the actual work.

It is hoped that readers will be able to lay a solid foundation through this tutorial, to be able to operate the Kubernetes calmly, and to build a practical container management platform in combination with the actual needs of the company and organization.

Finally wish everyone to use Kubernetes happy!

book:

1. "5 minutes a day kubernetes"
Https://item.jd.com/26225745440.html

2.5 minutes of Docker container technology per day
Https://item.jd.com/16936307278.html

3.5 minutes of play with OpenStack per day
Https://item.jd.com/12086376.html


Kubernetes cluster Log management-5 minutes per day to play Docker container technology (+)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.