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

A method and device for deploying a harbor mirror warehouse with high availability based on kubernetes

A mirroring and warehouse technology, applied in the field of deploying harbor mirroring warehouses, can solve problems such as abnormal data synchronization and loss, achieve high-availability deployment, improve work efficiency, and avoid data loss

Active Publication Date: 2021-11-02
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF2 Cites 0 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 method and device for deploying a harbor mirror warehouse with high availability based on kubernetes
  • A method and device for deploying a harbor mirror warehouse with high availability based on kubernetes
  • A method and device for deploying a harbor mirror warehouse with high availability based on kubernetes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] like 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] like 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, t...

Embodiment 3

[0057] like 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 container ...

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

In order to solve the problems existing in the prior art of high-availability deployment of harbor warehouses, the present invention innovatively proposes a method and device for high-availability deployment of harbor mirror warehouses based on kubernetes, uses DaemonSet objects to create harbor service containers, and deploys harbor mirror warehouses In the pod container, the service object is used to manage the pod container and provide a unified entrance for external access. The pod container uses shared storage as persistent storage, which can not only realize the high-availability deployment of the harbor mirror warehouse, but also avoid frequent exceptions in data synchronization Or data loss and other issues, the operability is strong, simple and reliable, and the work 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
Patent Type & Authority Patents(China)
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