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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com