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

A kubernetes-based high-availability method and device for deploying a harber mirror image warehouse

A mirror and warehouse technology, applied in the field of deploying harbor mirror warehouses, can solve problems such as loss and abnormal data synchronization, and achieve the effect of improving work efficiency, high availability deployment, and strong operability

Active Publication Date: 2019-04-26
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF2 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problems existing in the prior art of high-availability deployment of harbor warehouses, the present invention proposes a method and device for high-availability deployment of harbor mirror warehouses based on kubernetes, which can not only realize high-availability deployment of harbor mirror warehouses, but also avoid Data synchronization often causes problems such as abnormality or data loss. It is highly operable, simple and easy to implement, and improves operational efficiency.

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
  • A kubernetes-based high-availability method and device for deploying a harber mirror image warehouse
  • A kubernetes-based high-availability method and device for deploying a harber mirror image warehouse
  • A kubernetes-based high-availability method and device for deploying a harber mirror image warehouse

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] Such as figure 1 As shown, a method for deploying a harbor mirror warehouse with high availability based on kubernetes in the technical solution of the present invention includes:

[0046] S1, use the DaemonSet object to create a pod container, and deploy the harbor mirror warehouse in the pod container;

[0047] S2, use the service object to manage the pod container, and provide a unified entrance for external access;

[0048] S3, pod containers use shared storage as persistent storage.

Embodiment 2

[0050] Such as figure 2 and image 3 As shown, in the technical solution of the present invention, in a method for deploying a harbor mirror warehouse with high availability based on kubernetes, step S1 is specifically:

[0051] S11, the DaemonSet object 11 in the kubernetes system defines several pod containers with the same configuration, and the pod containers are distributed on different physical servers;

[0052] S12, the DaemonSet object monitors several pod containers defined by it, and rebuilds the pod container when the status of the pod container is abnormal.

[0053] Among them, in step S11, the DaemonSet object 11 in the kubernetes system defines and creates N pod containers with the same configuration, that is, the first pod container, the second pod container, the third pod container...the Npod container, and the DaemonSet object 11 defines the creation The N pod containers with the same configuration are distributed in different physical server nodes, that is...

Embodiment 3

[0057] Such as Figure 4 and Figure 5 As shown, in the technical solution of the present invention, in a method for deploying a harbor mirror warehouse with high availability based on kubernetes, step S2 is specifically:

[0058] S21, the service object 21 of the kubernetes system establishes a management relationship between several pod containers and the service object 21;

[0059] S22, the serivce object 21 provides a unified IP address and port number externally as an external access entrance.

[0060] Among them, in step S21, the service object 21 of the kubernetes system is responsible for managing several pod containers defined and created by the DaemonSet object 11, and the service object 21 establishes a management relationship between several pod containers and the service object 21, that is, the service object 21 will be located at The first pod container on a physical server node, the second pod container on the second physical server node, the third pod contain...

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 aims to solve the problems existing in the prior art of high-availability deployment of a harber warehouse. The invention innovatively provides a kubernetes-based method and a kubernetes-based device for deploying a harber mirror image warehouse with high availability. The method comprises the following steps of: creating a harbor service container by using a DaemonSet object; The method comprises the following steps: deploying a harber mirror image warehouse in a pod container; the service object is used for managing the pod container; According to the method, the shared storageis used as the main storage, a unified entrance is provided for external access, and the pod container uses the shared storage as the persistent storage, so that the high-availability deployment of the harber mirror image warehouse can be realized, the problems that data synchronization often causes abnormity or data loss and the like are avoided, the operability is high, the method is simple, feasible and reliable, and the working efficiency is improved.

Description

technical field [0001] The present invention relates to a method for deploying a harbor mirror warehouse, in particular to a method and device for deploying a harbor mirror warehouse with high availability based on kubernetes. Background technique [0002] As a system for managing cross-multi-host container applications, kubernetes not only has complete container cluster management capabilities, but also adds multi-level security protection mechanisms, tenant application support, server registration and intelligent load balancer functions, especially the powerful faults of kubernetes Discovery and self-repair capabilities have greatly improved the system's operation and maintenance capabilities. Harbor is an enterprise-level registry (mirror warehouse) server for storing and distributing container images, using the official docker (open source container engine) registry service to complete. Harbor adds some security, access control, and management functions on the basis of ...

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
IPC IPC(8): G06F16/28G06F16/27
Inventor 刘娜
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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