Method for automatically creating and mounting LVM volume in K8s environment

An environment and mounting technology, applied in the field of cloud computing, can solve the problems of excellent read and write performance of local storage and the inability of remote storage to achieve the effect of improving ease of use and manageability

Pending Publication Date: 2020-11-03
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The workload of the Kubernetes cluster can use a variety of storage methods. Most disk plug-ins use remote storage. This is to make persistent data and computing nodes independent of each other. However, remote storage usually cannot provide the excellent read and write performance of local storage.

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
  • Method for automatically creating and mounting LVM volume in K8s environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0025] The method for automatically creating and mounting LVM volumes in the K8s environment, based on the Kubernetes environment, includes the following steps:

[0026] The first step is to make an image that performs automatic creation and mounting of LVM volumes, install the lvm2 package on the basis of the native base image, and execute the releva...

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 particularly relates to a method for automatically creating and mounting an LVM volume in a K8s environment. The method for automatically creating and mounting the LVM volume in the K8senvironment comprises the following steps of: based on the Kubernetes environment, firstly, making a mirror image for executing automatic creation and mounting of the LVM volume, and then, defining aConfigmap tube and a Job management single copy Pod to run the made mirror image, configuring container permission, environment variables, mount required and selecting nodes; and finally, using a Kubernetes client to operate the previously created yaml file, including Configmap and Deployment, so as to achieve automatic creation and LVM volume mounting of target node operation; repeated operationcan be realized, subsequent expansion of the LVM volume is supported, node service is provided, and local storage is used. According to the method for automatically creating and mounting the LVM volume in the K8s environment, conversion from the target disk to the LVM volume is completed by reading related configurations through Kubernetes Job, and the LVM volume is mounted on the target directoryto provide service for use, so that the usability and manageability are greatly improved compared with the process of manually completing disk initialization and mounting, and the requirement of using local storage by Kubernetes service in the production environment can be met.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method for automatically creating and mounting LVM volumes in a K8s environment. Background technique [0002] Kubernetes, referred to as K8s, is an abbreviation formed by replacing the 8 characters "ubernete" with 8. As an open source, used to manage containerized applications on multiple hosts in the cloud platform, Kubernetes' goal is to make deploying containerized applications simple and efficient (powerful). Kubernetes provides a mechanism for resource application deployment, planning, updating and maintenance. [0003] Kubernetes cluster workloads can use multiple storage methods. Most disk plug-ins use remote storage to make persistent data and computing nodes independent of each other. However, remote storage usually cannot provide excellent read and write performance of local storage. LVM (Logical Volume Management) represents a local disk directly bound to ...

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/06G06F11/14
CPCG06F3/0607G06F3/0629G06F3/0644G06F11/1458
Inventor 李珂申嘉童于沈课蔡卫卫高传集
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products