Dynamic creation method and device for local storage volume

A local storage and dynamic creation technology, applied in the field of cloud computing, can solve problems such as inability to support multiple storage pool storage pool selection schemes, inability to use files, etc.

Pending Publication Date: 2022-04-08
广西东信数建信息科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that in k8s (kubernetes, referred to as k8s, is an abbreviation formed by replacing the 8 characters "ubernete" in the middle of the name with 8, it is an open source, used to manage containerized applications on multiple hosts in the cloud platform ), pods are dynamically scheduled on each node node. When a pod is started on the current node node and stored locally through hostPath, the next time it is scheduled to start on another node, it cannot be used on the previous node. stored files
At present, open source communities such as rancher provide a dynamic hostpath allocation method. Although this method provides dynamic hostpath application and supports storage pool expansion with multiple nodes and multiple paths, it cannot support multiple storage pools according to different nodes and different storage performance requirements. Storage pool selection scheme for

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 creation method and device for local storage volume
  • Dynamic creation method and device for local storage volume
  • Dynamic creation method and device for local storage volume

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention will be further described below in conjunction with the specific embodiments in the accompanying drawings.

[0039] refer to figure 1 , 2 , a method for dynamically creating a local storage volume, comprising:

[0040] Step 1: Create a local storage provider hostpath provisioner to provide k8s users with local storage for each node. Provisioner is deployed as a daemonset to ensure that a copy of pod runs on some or all nodes; pods are all business types The foundation is also the smallest unit level managed by k8s, which is a combination of one or more containers;

[0041] Step 2: Generate provisioner's service account ServiceAccount, role binding ClusterRoleBinding, role specification ClusterRole, and perform custom configuration;

[0042] Step 3: Create a hostpath storage class storageclass, dynamically generate a storage volume by creating a storageclass, configure the provisioner parameter of the storage class as example.io / hostpath, and con...

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 method for dynamically creating a local storage volume, relates to the technical field of cloud computing, and solves the technical problem that a plurality of storage pools cannot be supported to perform local storage according to different nodes and different storage performance. The method comprises the following steps: step 1, creating a local storage provider to provide local storage using each node for a k8s user, it is guaranteed that a pod copy is operated on each of part of or all of the nodes; step 2, a service account (ServiceAccount), a role binding (ClusterRole Binding) and a role specification (ClusterRole) of the provisor are generated, and the service account (ServiceAccount), the role binding (ClusterRole) and the role specification (ClusterRole) of the provisor are generated; step 3, creating a hostpath storage class StorageClass to dynamically generate a storage volume, configuring a provider parameter of the storage class to be example.io/hostpath, and configuring a VolumeBindingMode binding mode of the storage class to be a WaitForFirstConsumer, and configuring a VolumeBindingMode binding mode of the hostpath to be a VolumeBindingMode binding mode of the hostpath to be a VolumeBindingMode binding mode of the hostpath to be a VolumeBindingMode binding mode of the hostpath to be a VolumeBindingMode binding mode of the hostpath; and step 4, creating a test-pvc and binding a hostpath storage class, and requesting a specific storage class by the pvc through the Storage ClassName. The invention further discloses a local storage volume dynamic creation device.

Description

technical field [0001] The invention relates to the technical field of cloud computing, and more specifically, to a method and device for dynamically creating local storage volumes. Background technique [0002] HostPath Volume mounts a directory or file on the host for the pod (HostPath: a data volume of the local volume type mounts a file or directory on the file system of the node where the pod is located to the container group or inside the container), so that the container can use the host Host's high-speed file system for storage. The disadvantage is that in k8s (kubernetes, referred to as k8s, is an abbreviation formed by replacing the 8 characters "ubernete" in the middle of the name with 8, it is an open source, used to manage containerized applications on multiple hosts in the cloud platform ), pods are dynamically scheduled on each node node. When a pod is started on the current node node and stored locally through hostPath, the next time it is scheduled to start...

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
Inventor 黄芳凤赵凯麟周东
Owner 广西东信数建信息科技有限公司
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