IP address allocation method and system, electronic equipment and storage medium
A technology of IP address and allocation method, which is applied in the direction of transmission system, electrical components, etc., can solve problems such as pod IP address allocation abnormality, achieve the effect of avoiding IP address allocation conflicts and improving the allocation speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] Specifically, as figure 1 As shown, the process of applying the IP address allocation method disclosed in this embodiment to perform network configuration on the pods in the container cluster is as follows:
[0058] S100. Set a first IP address allocation mode.
[0059] Specifically, the setting process of the above-mentioned first IP address allocation mode (that is, the reciprocating IP address allocation mode) includes:
[0060] S110. Create an IP pool.
[0061] Specifically, create an IP pool resource type in the Kubernetes cluster, and set the IP pool to record the network segment information and the IP addresses used in the network segment. In some embodiments, the IP pool is further configured to record the configured pod name corresponding to the used IP address in the network segment, so as to establish a mapping table between the configured pod name and the used IP address, so as to perform other needs later Operation to query the correspondence between pod...
Embodiment 2
[0086] Corresponding to the above embodiments, the present application provides a method for IP address allocation, such as image 3 As shown, the method includes:
[0087] 3100. Obtain current state data of the container cluster;
[0088] Preferably, before acquiring the current state data of the container cluster, the method further includes:
[0089] 3110. Monitor the IP address allocation request in the cluster, where the IP address allocation request at least includes the name of the pod to be configured;
[0090] 3120. After monitoring the IP address allocation request, execute the method of claim 1.
[0091] 3200. Input the current state data into a trained distribution mode selection model, and obtain an output result of the distribution mode selection model;
[0092] Preferably, the method further includes training the distribution mode selection model, and the training process of the distribution mode selection model includes:
[0093] 3210. Perform training on t...
Embodiment 3
[0113] Corresponding to Embodiment 1 and Embodiment 2 above, the embodiment of the present application further provides an IP address allocation system, such as Figure 4 As shown, the system includes:
[0114] a data preparation module 410, configured to obtain current state data of the container cluster;
[0115] The data analysis module 420 inputs the current state data into the trained distribution mode selection model, and obtains the output result of the distribution mode selection model;
[0116] The data analysis module 420 is further configured to determine a target IP address allocation mode according to the output result;
[0117] The data processing module 430 is configured to allocate an IP address to the to-be-configured pod according to the IP address allocation mode.
[0118] In some embodiments, the data analysis module 420 is further configured to select the output result of the model as a first IP address allocation pattern probability and a second IP addr...
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