Supercharge Your Innovation With Domain-Expert AI Agents!

Dynamic storage class management method and device based on Kubernetes

A technology for dynamic storage and management methods, applied in the field of kubernetes clusters, which can solve problems such as insensitivity

Active Publication Date: 2021-07-16
INSPUR SOFTWARE TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The technical task of the present invention is to address the above deficiencies, provide a dynamic storage class management method and device based on Kubernetes, to solve how to automatically switch the standby storage class when there is a problem with the default storage volume, how to realize high availability of the storage class, and The user does not perceive the switching of the default storage class and has no effect on the creation of pods.

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
  • Dynamic storage class management method and device based on Kubernetes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] The present invention is based on the dynamic storage class management method of Kubernetes, comprises the following steps:

[0052] S100, create and configure a Kubernetes cluster, the Kubernetes cluster includes a control node and a computing node, and a ceph cluster is deployed in the Kubernetes cluster;

[0053] S200. Create and configure the rbd storage class as the default storage class;

[0054] S300. Create and configure a local-path storage class as a local backup storage class;

[0055] S400. Create a storage class monitoring application, and the storage class monitoring application is deployed inside the Kubernetes cluster;

[0056] S500, periodically monitor the health status of the rbd storage class and the local-path storage class through the storage class monitoring application;

[0057] S600. If both the rbd storage class and the local-path storage class are normal, create a pod and mount pvc through the rbd storage class;

[0058] If the ceph cluster...

Embodiment 2

[0081] The device of the present invention includes: at least one memory and at least one processor;

[0082] said at least one memory for storing machine-readable programs;

[0083] The at least one processor is configured to call the machine-readable program to execute the method disclosed in Embodiment 1 of the present invention.

Embodiment 3

[0085] In a computer-readable medium of the present invention, computer instructions are stored on the computer-readable medium, and when executed by a processor, the computer instruction causes the processor to execute the method disclosed in Embodiment 1. Specifically, a system or device equipped with a storage medium may be provided, on which the software program code for realizing the functions of any of the above embodiments is stored, and the computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.

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 dynamic storage class management method and device based on Kubernetes, belongs to the technical field of kubernetes clusters, and aims to solve the technical problems of how to automatically switch a standby storage class when a default storage volume has a problem, how to realize high availability of the storage class, and how to cause no influence on pod creation due to the fact that a user does not perceive switching of the default storage class. The method comprises the following steps: creating and configuring a Kubernetes cluster; creating and configuring an rbd storage class as a default storage class; creating and configuring a local-path storage class, and taking the local-path storage class as a local backup storage class; periodically monitoring the health state of the rbd storage class and the health state of the local-path storage class through the storage class monitoring application; and if both the rbd storage class and the local-path storage class are normal, creating a pod to mount the pvc through the rbd storage class.

Description

technical field [0001] The invention relates to the technical field of kubernetes clusters, in particular to a Kubernetes-based dynamic storage class management method and device. Background technique [0002] Kubernetes is used to manage containerized applications on multiple hosts in the cloud platform. It is an open source platform that can realize functions such as automatic deployment, automatic expansion and contraction, and maintenance of container clusters. Kubernetes has the advantages of rapid application deployment, rapid application expansion, seamless docking of new application functions, resource saving, and optimized use of hardware resources. [0003] Kubernetes functions include multiple pods working together, storage system mounting, application health detection, replication of application instances, Pod automatic scaling / expansion, registration and discovery, load balancing, rolling updates, resource monitoring, log access, debugging applications, and prov...

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): G06F3/06
CPCG06F3/067G06F3/0629G06F3/0653G06F3/0614
Inventor 张勇
Owner INSPUR SOFTWARE TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More