Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Resource change history recording method and device based on KuberneteKubernetes-based resource change history recording method and Kubernetes-based resource change history recording device

A technology of historical records and resources, applied in the field of cloud computing, can solve problems such as complex operation of resource change history records, inability to respond abnormally and quickly to Kubernetes clusters, etc.

Pending Publication Date: 2020-06-26
CHINA CONSTRUCTION BANK
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present application provides a method for resource change history record based on Kubernetes to solve the problem that the operation of querying the resource change history record of Kubernetes is complicated, resulting in the inability to respond quickly to the abnormality of the Kubernetes cluster. The method includes:
[0009] The embodiment of the present application also provides a Kubernetes-based resource change history recording device, which is used to solve the complex operation of querying Kubernetes resource change history records, resulting in the inability to respond quickly to the abnormality of the Kubernetes cluster. The device includes:

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Resource change history recording method and device based on KuberneteKubernetes-based resource change history recording method and Kubernetes-based resource change history recording device
  • Resource change history recording method and device based on KuberneteKubernetes-based resource change history recording method and Kubernetes-based resource change history recording device
  • Resource change history recording method and device based on KuberneteKubernetes-based resource change history recording method and Kubernetes-based resource change history recording device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the purpose, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the application and their descriptions are used to explain the application, but not to limit the application.

[0020] Events are generated when Kubelet starts and stops pods and controllermanger manages the work of each controller. The inventors of the present application found in research that the events stored in etcd have the same structure, see figure 2 , which is a schematic diagram of a complete event structure. The events structure mainly includes the following components:

[0021] ①, kind: resource type;

[0022] ②, name: resource name;

[0023] ③, namespace: namespace;

[0024] ④, reason: failure reason;

[0025] ⑤, message: event meaning;

[0026] ⑥, ource: event genera...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a resource change history recording method and device based on Kubernetes, and the method comprises the steps: maintaining the established batch connection with a kube-apiserver in a Kubernetes cluster based on a list-batch mechanism; accessing a kube-apiserver through a batch connection, and obtaining incremental data stored in the etcd; and storing the incremental data into a local database table. According to the method and the device, tThe problem that the operation of querying the resource change historical records of the Kubernetes is complex, so that the abnormality of the Kubernetes cluster cannot be quickly responded can be solved.

Description

technical field [0001] The present application relates to the technical field of cloud computing, in particular to a method and device for recording resource change history based on Kubernetes. Background technique [0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section. [0003] Kubernetes (k8s for short), as an open source container scheduling platform across host clusters, provides a container-centric infrastructure and has become the de facto standard in the field of container scheduling. Such as figure 1 Shown is the component diagram of Kubernetes. [0004] The core of Kubernetes project orchestration capabilities lies in the design and use of its declarative application programming interface (Application Programming Interface, API), see figure 1 , users can obtain and change resource information by perfo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/23G06F16/27G06F16/21G06F16/26
CPCG06F16/2358G06F16/27G06F16/219G06F16/26
Inventor 冯逸航
Owner CHINA CONSTRUCTION BANK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products