CN107580083A - A kind of method and system of container IP address distribution - Google Patents
A kind of method and system of container IP address distribution Download PDFInfo
- Publication number
- CN107580083A CN107580083A CN201710854707.2A CN201710854707A CN107580083A CN 107580083 A CN107580083 A CN 107580083A CN 201710854707 A CN201710854707 A CN 201710854707A CN 107580083 A CN107580083 A CN 107580083A
- Authority
- CN
- China
- Prior art keywords
- address
- container
- pool
- allocated
- total
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of method and system of container IP address distribution, it is related to field of computer technology.One embodiment of this method includes:The part IP address in total address pool is established into one-to-one binding relationship with corresponding container according to the first distribution requirements;Whether in the case of the request for receiving distribution IP address, judging the container of IP address to be allocated with IP address has binding relationship;If so, the IP address bound in the container of the IP address to be allocated is then distributed into the container;Otherwise, IP address unbound in total address pool is distributed to the container of the IP address to be allocated.The embodiment can realize the binding of IP address and container, and then ensure that IP address is constant when container is restarted or migrated, it is ensured that service is not interrupted.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and system of container IP address distribution.
Background technology
Container is a series of processes kept apart with system other parts, is run from a masterplate mirror image, and by the mirror image
All files needed for support process are provided.Wherein, Docker is the application container an increased income engine, allows developer can be with
Pack they application and rely on bag into a transplantable container, be then published to the Linux machines of any operation
On, virtualization can also be realized.Container is to use sandbox mechanism completely, does not have any interface between each other.Nowadays,
Docker application is also more and more extensive, and either from the code liveness on github, or Redhat is in RHEL6.5
Collect paired Docker support, even Google ompute Engine also support Docker to run above.
Kubernetes is the container cluster management system that Google increases income, and is important a member in the Docker ecospheres, and it provides application
The functions such as deployment, maintenance, extension mechanism, the application of across machine operation containerization can be easily managed using Kubernetes.
And the IP address of the how flexible dispensing containers of Kubernetes is undoubtedly the major issue for building network.
There is network management of the methods of Flannel, Calico-cni for Kubernetes at present.Flannel coordinates
Docker, all nodes allowed in cluster plan that using for IP address is regular again, so that the container energy on different nodes
It is enough to obtain " belonging to an Intranet together " and " unduplicated " IP address, and the container belonged on different nodes can directly be passed through
Intranet IP communicates.But in planned network, the container in every physical machine or a few physical machines is provided if desired
IP scopes need to configure etcd servers.Moreover, TCP data is packaged in inside another network bag by Flannel
Row routing forwarding and communication, the internodal data communication mode of acquiescence is UDP forwardings.This will make network performance lossy
It is and more complicated when analyzing network failure.
Calico-cni is a kind of CNI i.e. network plug-in pattern, it is necessary to which calico and calico-ipam two are executable
The use that combines of file and configuration file.Directly integrated with kubelet, operate in every node so as to find what is be created
Container, a subnet is randomly assigned from the address field of configuration to the physical node, and distributes an address from the subnet and give
Container.The container in same physical machine shares same subnet in this approach, and the container in different physical machines can not be total to
Enjoy same subnet.
Above method can not all realize the binding of container and IP address, restart in same physical machine when container or
When moving in other physical machine, IP address will change.Service so for monitoring fixed ip address will be unable to normally
Operation.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method and system of container IP address distribution, can pass through and configure
Total address pool be allocated IP address for all nodes, and can also according to demand by the part IP in total address pool
Location is bound with container, ensure that IP address is constant when container is restarted or migrated, it is ensured that service is not interrupted.
To achieve the above object, one side according to embodiments of the present invention, there is provided a kind of container IP address distribution
Method.
The method of the container IP address distribution of the embodiment of the present invention includes:According to the first distribution requirements by total address pool
Part IP address establish one-to-one binding relationship with corresponding container;Receive the situation of the request of distribution IP address
Under, whether judge the container of IP address to be allocated with IP address has binding relationship;If so, then by the IP address to be allocated
Container bound in IP address distribute to the container;Otherwise, IP address unbound in total address pool is distributed to
The container of the IP address to be allocated.
Alternatively, it is described to be established the part IP address in total address pool with corresponding container according to the first distribution requirements
The step of one-to-one binding relationship, includes:Part IP address is read out from total address pool according to the first distribution requirements, and
And determined to treat the binding tab of the container of binding IP address according to the first distribution requirements;By the binding tab with reading out
IP address establish man-to-man corresponding relation;The corresponding relation is recorded in static allocation list;The judgement is treated
Whether the container for distributing IP address with IP address has the step of binding relationship to include:Judge IP address to be allocated container whether
With binding tab;The step of IP address by bound in the container of the IP address to be allocated distributes to the container is wrapped
Include:Obtain the binding tab of the container of IP address to be allocated;Searched according to the binding tab in the static allocation list
Go out corresponding IP address;The IP address is distributed to the container of the IP address to be allocated.
Alternatively, it is described to be established the part IP address in total address pool with corresponding container according to the first distribution requirements
Before the step of one-to-one binding relationship, in addition to:According to the predetermined total address pool of IP address quantity configuration;So
Total address pool is stored in etcd database afterwards.
Alternatively, it is described to be established the part IP address in total address pool with corresponding container according to the first distribution requirements
Before the step of one-to-one binding relationship, in addition to:It is the physical machine specified by configuring text according to the second distribution requirements
Part configures given pool, and the IP address in the given pool is integrally incorporated in total address pool;
Described the step of IP address unbound in total address pool is distributed into the container of the IP address to be allocated
Including:Whether the physical machine where judging the container of the IP address to be allocated is configured with given pool;If it is not,
IP address unbound in total address pool is distributed to the container of the IP address to be allocated;Otherwise, will be described specified
Unbound IP address distributes to the container of the IP address to be allocated in the pond of location.
Alternatively, the appearance that IP address unbound in total address pool is distributed to the IP address to be allocated
The step of device, also includes:Judge whether the given pool and the given pool of other physical machines have common factor;If handing over
Collection, then export error information;Otherwise, the IP address in unallocated list in the given pool is distributed into described treat point
Container with IP address, and will be removed in the IP address never distribution list, and by the IP address with obtaining institute
The container for stating IP address is accordingly recorded in distribution list.
Alternatively, the step of IP address by bound in the container of the IP address to be allocated distributes to the container
Including:Determined to be located at primary IP address according to the order of the IP address of current bindings, the IP address is then distributed to this
Container;Described the step of IP address unbound in total address pool is distributed into the container of the IP address to be allocated, wraps
Include:Determined to be located at primary IP address according to the order of IP address unbound in total address pool, then by the IP addresses
Distribute to the container.
Alternatively, after IP address being distributed into container, in addition to:According to allocated IP address, for obtaining the IP
The container of location creates a pair of veth-pair.
The system of the container IP address distribution of the embodiment of the present invention includes:Configuration module, for according to the first distribution requirements
Part IP address in total address pool is established into one-to-one binding relationship with corresponding container;Judge module, for connecing
Whether in the case of the request for receiving distribution IP address, judging the container of IP address to be allocated with IP address has binding relationship;It is quiet
State distribute module, for judging that the container of the IP address to be allocated has binding relationship with IP address in the judge module
Afterwards, the IP address bound in the container of the IP address to be allocated is distributed into the container;Dynamically distributes module, in institute
State judge module and judge the container of the IP address to be allocated and after IP address do not have binding relationship, by total address pool
In unbound IP address distribute to the container of the IP address to be allocated.
Alternatively, the configuration module is additionally operable to, according to the first distribution requirements from total address pool with reading out part IP
Location, and determined according to the first distribution requirements to treat the binding tab of the container of binding IP address;By the binding tab with reading
The IP address of taking-up establishes man-to-man corresponding relation;The corresponding relation is recorded in static allocation list;The judgement
Module is additionally operable to, and judges the container of IP address to be allocated and whether has binding tab.
Alternatively, the static allocation module includes:Acquiring unit, the container for obtaining IP addresses to be allocated are tied up
Calibration label;Searching unit, for finding out corresponding IP address in the static allocation list according to the binding tab;
Allocation unit, for the IP address to be distributed to the container of the IP address to be allocated.
Alternatively, the configuration module is additionally operable to, according to the first distribution requirements by the part IP address in total address pool
It is total according to predetermined IP address quantity configuration before the step of establishing one-to-one binding relationship with corresponding container
Address pool;Then total address pool is stored in etcd database.
Alternatively, the configuration module is additionally operable to, according to the first distribution requirements by the part IP address in total address pool with
It is that the physical machine specified is led to according to the second distribution requirements before the step of corresponding container establishes one-to-one binding relationship
Configuration file configuration given pool is crossed, and the IP address in the given pool is integrally incorporated in total address pool
In;And
The dynamically distributes model is additionally operable to, and whether the physical machine where judging the container of the IP address to be allocated matches somebody with somebody
Given pool is put;If it is not, by IP address unbound in total address pool with distributing to the IP to be allocated
The container of location;Otherwise, IP address unbound in the given pool is distributed to the container of the IP address to be allocated.
Alternatively, the dynamically distributes module is additionally operable to, judge the given pool and other physical machines specifiedly
Whether location pond has common factor;If occuring simultaneously, then error information is exported;Otherwise, by unallocated list in the given pool
IP address distribute to the container of the IP addresses to be allocated, and will be removed in the IP address never distribution list, and
The IP addresses are accordingly recorded in distribution list with obtaining the container of the IP address.
Alternatively, the static allocation module is additionally operable to, and is determined to be located at first according to the order of the IP address of current bindings
The IP address of position, then distributes to the container by the IP address;
The dynamically distributes module is additionally operable to, and is determined according to the order of IP address unbound in total address pool positioned at the
The IP address of one, the IP address is then distributed into the container.
Alternatively, in addition to:Creation module, after IP address is distributed into container, according to allocated IP
Location, a pair of veth-pair are created to obtain the container of the IP address.
To achieve the above object, one side according to embodiments of the present invention, there is provided a kind of container IP address distribution
Device.
The container IP address assigned unit of the embodiment of the present invention includes:One or more processors;Storage device, use
In storing one or more programs, when one or more of programs are by one or more of computing devices so that described
The method that one or more processors realize the distribution of said vesse IP addresses.
To achieve the above object, one side according to embodiments of the present invention, there is provided a kind of computer-readable medium,
It is stored thereon with computer program, it is characterised in that realize that said vesse IP address is distributed when described program is executed by processor
Method.
One embodiment in foregoing invention has the following advantages that or beneficial effect:After total address pool is configured, according to
Part IP address in total address pool is established one-to-one binding relationship by the first distribution requirements with corresponding container,
So that it is allocated when distributing IP address according to the binding relationship.After the request of distribution IP address is received, and judge
Go out the container of IP address to be allocated binding IP address, then carry out static allocation, the IP address of the binding is distributed into appearance
Device.And then container is in same physical machine when restarting or moving in other physical machine, IP address do not occur it is constant, really
The service of guarantor is not interrupted.Solve in the prior art for container allocation IP address when, can not realize container and IP address binding
Problem.Also, all containers that total address pool that the present invention configures can be given in cluster use, and in distribution IP address
During, the IP address that can directly obtain in total address pool distributes to container, not only ensure that any one IP address can be with
Used in all nodes, improve the flexibility of cluster, while the method that also simplify the distribution of container IP address.
Further effect adds hereinafter in conjunction with embodiment possessed by above-mentioned non-usual optional mode
With explanation.
Brief description of the drawings
Accompanying drawing is used to more fully understand the present invention, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method for container IP address distribution according to embodiments of the present invention;
Fig. 2 is the schematic diagram of dynamically distributes according to embodiments of the present invention;
Fig. 3 is the schematic diagram of static allocation according to embodiments of the present invention;
Fig. 4 is the schematic diagram of the main modular of the system of container IP address distribution according to embodiments of the present invention;
Fig. 5 is that the embodiment of the present invention can apply to exemplary system architecture figure therein;
Fig. 6 is adapted for for realizing that the terminal device of the embodiment of the present invention or the structure of the computer system of server show
It is intended to.
Embodiment
The one exemplary embodiment of the present invention is explained below in conjunction with accompanying drawing, including each of the embodiment of the present invention
Kind details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
Know, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.
Equally, for clarity and conciseness, the description to known function and structure is eliminated in following description.
Description below is carried out to the technical term being related in the embodiment of the present invention:
Kubernetes:Kubernetes is the container cluster management system that Google increases income, its offer application deployment,
The functions such as maintenance, extension mechanism, the application of across machine operation containerization can be easily managed using Kubernetes;
Kubelet:In Kubernetes clusters, one can be started on each Node nodes (also known as Minion)
Kubelet services are carried out.The process is used to handle the task that Master nodes are issued to this node, manages in Pod and Pod
Container.Each Kubelet processes can on API Server register node self information, periodically report and save to Master nodes
The service condition of point resource, and pass through cAdvise monitoring of containers and node resource;
Docker:Docker is the application container an increased income engine, allow developer can pack they application and
Bag is relied on into a transplantable container, is then published on the Linux machines of any operation, virtualization can also be realized.
Container is to use sandbox mechanism completely, does not have any interface between each other;
Flannel:Flannel is the network planning service that CoreOS team is directed to Kubernetes designs;Simply
For, its function is that the Docker containers that the different node hosts allowed in cluster create all have complete or collected works group uniquely virtual
IP address, and interconnect Docker containers;
CNI:CNI (capacitor network interface) is a kind of process container network standard, includes method specification, Parameter specifications etc..
CNI is only concerned the network connection of container, creates time-division distribution network resource in container, and the money of distribution is deleted when deleting container
Source.For this reason that CNI has extensive support, specification is easily achieved.CNI interfaces only need to realize two methods, one
Call when creating container, call during a deletion container;
Pod:One Pod corresponds to a container group being made up of some containers, shares a net with the container in a group
Network NameSpace and IP address.Pod mainly establishes application oriented " Logical HEA " mould in containerization environment
Type, it can include one or more containers being closely connected each other.Pod is responsible for by replication controller
It is old to substitute to create new Pod;
label:One label is attach to Pod a pair of key/value pair, for transmitting user-defined attribute.Than
Such as, you may create " staticIP " label, be marked by label (staticIP=domain1ServerIP)
The IP titles that Pod containers use;
Overlay:Overlay is that a virtual network is fictionalized on legacy network, and legacy network need not done
Any adaptation, such physical layer network only correspond to the calculating (physical machine, virtualization layer management net) of physical layer.Overlay passes through
Control protocol carries out network struction and extension to the network equipment at edge, concrete implementation technology have EVI, TRILL, VPLS,
LISP, VXLAN etc.;
etcd:Etcd is a key/value storage service applied under distributed environment.Using etcd characteristic,
Application program can share information in the cluster, configure or make service discovery, and etcd can replicate this in each node of cluster
A little data simultaneously ensure that these data are correct all the time.Etcd is either in CoreOS or Kubernetes systems can not
An or scarce ring;
veth-pair:Virtual Ethernet Pair abbreviation veth-pair, are a pair of Microsoft Loopback Adapters, between the two
There is virtual link.All that port one end incoming data bag will all be come out from the other end from this, vice versa.
Fig. 1 is the schematic diagram of the main flow of the method for container IP address distribution according to embodiments of the present invention.
As shown in figure 1, the method for the container IP address distribution of the embodiment of the present invention mainly includes:
S101:The part IP address in total address pool and corresponding container are established one a pair according to the first distribution requirements
The binding relationship answered.Before binding relationship is established, according to the predetermined total address pool of IP address quantity configuration, and will be total
Address pool is stored in etcd database, realizes distributed storage.Total address pool may be stored not only in etcd, may be used also
To be stored in other servers, as long as distributed storage can be realized.Wherein, etcd is one and applied in distributed ring
Key/value storage services under border.Using etcd characteristic, application program can share information, configuration or work in the cluster
Service discovery, etcd can replicate these data in each node of cluster and ensure that these data are correct all the time.Wherein, in advance
The IP address quantity first determined can be configured according to the network planning to the demand of IP address quantity.
It is exactly that some IP address in some container and total address pool is corresponded to establish binding relationship, is recorded in
On etcd servers.When distributing address, check whether this container is one-to-one relation with some IP address, if
It is that the IP address is just distributed to this container, otherwise just distributes to container with the unbound IP address in total address pool.Its
In, part IP address is read out from total address pool according to the first distribution requirements, and determine according to the first distribution requirements
Treat the binding tab (label) of the container of binding IP address;It is man-to-man right that binding tab is established with the IP address read out
It should be related to;Corresponding relation is recorded in static allocation list.In the static allocation list, the institute bound can be found
Have an IP address, and the static allocation list also can distributed storage in etcd.Judge IP address to be allocated container whether
There is the step of binding relationship to include with IP addresses:Whether judge the container of IP address to be allocated has binding tab.Also, will
IP address bound in the container of IP address to be allocated, which distributes to the step of container, to be included:Obtain the appearance of IP address to be allocated
The binding tab of device;Corresponding IP address is found out in static allocation list according to binding tab;IP address is distributed to and treated
Distribute the container of IP address.Binding relationship is established by label and IP address, the calling of user can be easy to, because multiple
Address differs the MAC (Media Access Control media intervene key-course) of different containers, but label in access
It can keep identical.So if externally being serviced based on IP, if the binding by label and IP address, it is ensured that Yong Hu
The IP addresses obtained in repeatedly accessing keep constant, and then user's calling of being more convenient for.
S102:In the case of the request for receiving distribution IP address, whether with IP the container of IP address to be allocated is judged
There is binding relationship location.If by label, IP address bound with corresponding container, then with receiving distribution IP
After the request of location, judge that the container of IP address to be allocated whether there is label, if it is present can determine whether out the IP to be allocated
There is binding relationship in the container of address, further perform S103 with some IP address in total address pool, that is, carry out static point
Match somebody with somebody.If label is not present in the container of IP address to be allocated, judge that the container of the IP address to be allocated is not bound
IP address, S104 is further performed, that is, carry out dynamically distributes.
S103:IP address bound in the container of IP address to be allocated is distributed into the container.In the process of static allocation
In, according to the request of the distribution IP address received, obtain the binding tab of the container of IP addresses to be allocated, and according to tying up
Calibration label find out corresponding IP address in static allocation list, and IP address is distributed to the container of IP address to be allocated.
S104:IP address unbound in total address pool is distributed to the container of IP address to be allocated.Configuring total address
Can be that the physical machine specified configures given pool by configuration file according to the second distribution requirements, and refer to during pond
Determine the IP address in address pool to be integrally incorporated in total address pool, i.e., given pool is under the jurisdiction of total address pool.Because in reality
Using may exist is needed to set a given pool for some physical machine is specific, and IP is being distributed for the physical machine
During address, acquisition IP address is allocated from the given pool.If there is no configuration given pool demand,
When distributing IP address, IP addresses can be obtained directly in total address pool and be allocated.
Therefore, dynamically distributes also include:It is specified whether the physical machine where judging the container of IP address to be allocated is configured with
Address pool.If it is not, IP address unbound in total address pool is distributed to the container of IP address to be allocated;Otherwise, will
Unbound IP address distributes to the container of IP address to be allocated in given pool.By the process, it can more meet user
The demand that specific physical machine sets corresponding given pool is existed in distribution IP addresses.Meanwhile dynamically distributes also include:
Judge whether given pool and the given pool of other physical machines have common factor;If occuring simultaneously, then error information is exported;
Otherwise, the IP address in unallocated list in given pool distributed to the container of IP address to be allocated, and by IP address
Never removed in distribution list, and IP address is accordingly recorded in distribution list with obtaining the container of IP address.
By judging whether given pool and the given pool of other physical machines have common factor, it is ensured that IP address can unique mark
Container.
After total address pool or configuration given pool is configured, unallocated list and distribution list are created, and will
Unallocated list initialization is that either (IP address in total address pool or given pool is all for given pool for total address pool
In unallocated list), distribution list is initialized as sky.Moreover, it is by the IP address in unallocated list according to IP
The size of location is ranked up storage.The IP in gauge outfit is taken out during IP address is distributed, never in distribution list
Location, and the IP address is moved on in distribution list.Meanwhile the IP address distributed and acquisition are recorded in distribution list
The corresponding relation of the container of the IP address so that when deleting some container, the appearance of deletion by the corresponding relation, can be found out
The IP address of device.The IP addresses are withdrawn, will the IP address moved on to from distribution list in unallocated list, and by
The information of the corresponding relation stored in distribution list and the IP address is all deleted.Also, the IP addresses are added to unallocated row
Table it is last, do not destroy original order.The process of above-mentioned distribution is the mode that team joins the team.Go out team according to this to join the team
Mode distributes to IP address in total address pool in the container of IP address to be allocated, can be easy to the IP arrived for predicting container allocation
Address, solve prior art Calico-cni causes what user can not predict to be randomly assigned subnet in each physical machine
Problem.
The method of the container IP address distribution of the embodiment of the present invention also includes:Carry out static allocation or dynamically distributes it
Afterwards, i.e., the container allocation of IP address to be allocated is to after IP address, according to allocated IP address, to obtain the IP address
Container creates a pair of veth-pair (Virtual Ethernet Pair).A pair of veth-pair are created, one end is sent to container
Inside, one end exist in external container in the form of network interface card.Bridge interface need not be used, network bag directly forwards from network interface card
To inside container.The address that the method distributed using the container IP address of the embodiment of the present invention is distributed is exactly to be allocated in container
The network interface card in portion with the use of route, it is necessary to just can guarantee that the unobstructed of networking.The side of the container IP address distribution of the embodiment of the present invention
Method is that the IP address based on legacy network does not use overlay or bridge joint, simplifies the network architecture, it is ensured that network performance
Maximize.
Fig. 2 is the schematic diagram of dynamically distributes according to embodiments of the present invention.
In the case of the request for receiving distribution IP address, judge after carrying out dynamically distributes, as shown in Fig. 2 judging to treat point
Whether given pool is configured with the physical machine belonging to the container of IP address.If being configured without given pool, from total
The container that IP address distributes to the IP address to be allocated is obtained in address.During distribution, for ease of what is distributed
IP address and it is unallocated go out IP address, unallocated list (unsignedIPs queues) and distribution list can be created
(signedIPs queues).If created, need not create again.Create unallocated list and after distribution list,
Take out first in unallocated list IP address and distribute to the container, the IP address is deleted in unallocated list, simultaneously
The IP address is added to distribution list.For example, it is tactic according to from small to large during IP address queue initialization,
But the afterbody in queue can be added after some address is released, then according to the order of queue with distributing IP from the beginning to the end
Location.Such as:The initial queue of IP address is 172.30.1.1,172.30.1.2,172.30.1.3,172.30.1.4.When having three
During individual container applied address, 172.30.1.1 can be distributed respectively, and 172.30.1.2,172.30.1.3 give these three containers, then
This address of 172.30.1.4 is just only remained in unsignedIPs queues.When the container for taking 172.30.1.2 is destroyed and releases
After putting address, the address of release can be added to the afterbody of unsignedIPs queues, i.e. 172.30.1.4,172.30.1.2.Such as
When fruit has container application distribution IP address again, it can be allocated according to the order of the IP address of current unsignedIPs queues,
And then container rather than 172.30.1.2 are distributed in this address 172.30.1.4.
If the physical machine belonging to the container of IP address to be allocated is configured with given pool, judge that this specifies address
Whether pond belongs to total address pool, if be not belonging to, prompts mistake.Because the total address pool set in embodiments of the present invention
Global it can use, each given pool of configuration should belong to total address pool.Judge that given pool belongs to generally
Behind the pond of location, to ensure the uniqueness of container IP address, continue to judge whether the given pool is specified with other physical machines
Address pool, which exists, occurs simultaneously, and if occuring simultaneously, equally prompts mistake.Because it is to pass through to configure to configure given pool for physical machine
What file was realized, judge that common factor is not present in the given pool of the given pool and other physical machines, this is specified into address
Pond is recorded in etcd database, and then realizes that configuration file is synchronous with etcd's.If the given pool is recorded
On etcd, then it need not record again.
As shown in Fig. 2 after the given pool is recorded on etcd, created for given pool
UnsignedIPs queues and signedIPs queues, and unsignedIPs queues are initially given pool, that is, specify ground
IP address in the pond of location is all in unsignedIPs queues.Meanwhile by signedIPs queue initializations for sky.If
IP address is distributed for the physical machine of the given pool, then need not carry out creating unsignedIPs queues and signedIPs
Queue, it is not required that the operation initialized.After above-mentioned steps, the process of IP address is distributed still according to going out team
Enter to mode carry out, that is, take out first IP address in current unsignedIPs queues, if there is container delete, then
The IP address of the container is added to the last of unsignedIPs queues.
After taking out first IP address in unsignedIPs queues, judge whether the IP address belongs to static allocation row
In table, if it is present the IP address is moved on in static allocation list, and again from current unsignedIPs queues
One IP address continues to judge.If take out IP address be not belonging to static allocation list, by the IP address from
SignedIPs queues are moved on in unsignedIPs queues.And then stored in unsignedIPs queues be all it is unallocated go out
IP address, the IP address that distributes and the information of container for obtaining the IP address in being recorded in signedIPs queues.
Fig. 3 is the schematic diagram of static allocation according to embodiments of the present invention.
Determined according to the label of the container of IP address to be allocated after carrying out static allocation, as shown in Fig. 3, according to
Label judges whether the IP address of container binding belongs in total address pool because total address pool is global use, then if
It is not belonging to prompt mistake.If the IP address of container binding belongs to total address pool, then by container corresponding to the IP address of binding
Current container is revised as, and is recorded in static allocation list.During static allocation, an IP address can repeat
Use, different containers is distributed to by changing binding relationship IP address.And then sentence according to this time binding relationship
It is disconnected, and which container the IP address for judging to find out by the binding relationship be allocated to, determine IP address and container
Whether binding relationship changes.If binding relationship is changed, it is necessary to record which container this address is currently by
It is used.If binding relationship does not change, need not be recorded again.
On the basis of said process, the withdrawal of IP address then can be fairly simple when container is deleted.First pass through container and IP
The corresponding relation of address finds IP address, and IP address is moved on in unsignedIPs queues from signedIPs queues, and clearly
Except the IP address and the corresponding relation of container.And if IP address in static binding list, then only need the IP address and
The corresponding relation of container is deleted.
During distributing IP address by flannel in the prior art, one need to be set on etcd servers with user
The flannel overlay networks belonged in same Intranet IP sections.When the Docker on physical node starts, if used
Flannel network models, then flannel can distribute the subnet of a small range to this node from overlay network.So
Container on the physical node can all use the IP address in this subnet.Its detailed process includes:First have to take in etcd
It is engaged in setting one { " Network " on device:" 10.1.0.0/16 " } overlay network, docker process initiations in physical machine afterwards
When used flannel parameter, flannel distribution subnets, such as following two physical machines, one is assigned with 10.1.15.1/
24, one is assigned with containers of the 10.1.20.1/24. so in the two physical machines and will use respectively in the two subnets
IP address.The embodiment of the present invention by setting address pool, by distribute IP address process simplified, similar to directly from
10.1.0.0/16 address is taken in network, and without distributing subnet again for each physical machine.
Moreover, in planned network, the container IP models in every physical machine or a few physical machines are provided if desired
Enclose, flannel needs to configure etcd servers, and the method for the container IP address of embodiment of the present invention distribution only needs to change
Configuration file.The method of the container IP address distribution of the embodiment of the present invention is a kind of KubernetesCNI methods, can be led to
Cross a binary file sDHClient and a configuration file is used cooperatively.The configuration file starts fashionable dress by kubelet
Carry, be configured with the IP address i.e. given pool (subnet) that this node upper container uses, configure specify also on etcd in addition
Container and the static allocation list of IP address binding.Recorded in the static allocation list be container pod label fields and
The corresponding relation of IP address.CNI, which is generally required, realizes that two interface cmdAdd and cmdDel, cmdAdd are used for one, container
Address, cmdDel are used to withdraw an address.Wherein, cmdAdd, cmdDel are a function interfaces in CNI plug-in units, this hair
Bright embodiment is all that CNI plug-in units are realized.
First, check in cmdAdd parameter (container name or Container ID) whether there is label, it is static if carrying out
Distribution, on the contrary carry out dynamically distributes.
For dynamic IP address allocation, it is necessary first to the total address pool set in etcd database
(defaultPool).The subnet in configuration file on each kubelet nodes must belong to this address pool.If not yet
There is configuration subnet, then acquiescence uses defaultPool.SDHClient also to check whether to exist on etcd and subnet
There is the given pool of common factor, if can then report an error, and prompt user to change configuration, prevent with distributing identical IP
Location.
SDHClient can go out team by ground and enter to give container pod distribution IP address respectively in the way of.And remember in etcd
Record unsignedIPs queues and the signedIPs queues dispensed, it is ensured that the IP address of repetition will not be distributed.In addition
The subnet of physical machine configuration is also recorded on etcd, prevents from overlapping with other nodes.Also, record and hold on etcd
Device and the corresponding relation of IP addresses distributed, IP address is correctly reclaimed during to delete container.Meanwhile divide by IP address
Before dispensing container, it is also necessary to check that the IP address whether in static address list of bindings, needs to skip if in lists
The address, and the address is removed from unsignedIPs lists, prevent sDHClient from the IP address is distributed to unbundling
Container.
Fig. 4 is the schematic diagram of the main modular of the system of container IP address distribution according to embodiments of the present invention.Such as Fig. 4
Shown, the system 400 of the container IP address distribution of the embodiment of the present invention mainly includes:Configuration module 401, judge module 402,
Static allocation module 403 and dynamically distributes module 404.
Configuration module 401 is used for after configuring total address pool, according to the first distribution requirements by the part IP in total address pool
One-to-one binding relationship is established in address with corresponding container;
Judge module 402 is used in the case of receiving the request for distributing IP address, judges the container of IP address to be allocated
Whether with the IP address in total address pool binding relationship is established;
Static allocation module 403 is used in judge module judges container and the total address pool of IP address to be allocated
After IP address establishes binding relationship, static allocation is carried out, static allocation includes:By the container of IP address to be allocated in total address
The IP address bound in pond distributes to the container of IP addresses to be allocated;
Dynamically distributes module 404 is used in judge module judges container and the total address pool of IP address to be allocated
After IP address does not establish binding relationship, dynamically distributes are carried out, dynamically distributes include:By IP unbound in total address pool
Distribute to the container of IP address to be allocated in location.
Wherein, configuration module 401 is determined to treat the binding tab of the container of binding IP address according to the first distribution requirements;
IP address in binding tab and total address pool is established into man-to-man corresponding relation;Corresponding relation is recorded in static allocation
In list.Moreover, static allocation module 403 includes:Acquiring unit, for the request according to the distribution IP address received, obtain
Take the binding tab of the container of IP address to be allocated;Searching unit, for being looked into according to binding tab in static allocation list
Find out corresponding IP address;Allocation unit, for IP address to be distributed to the container of IP address to be allocated.
Configuration module 401 is additionally operable to configure total address pool according to the network planning, and total address pool distributed storage is existed
In etcd database.Also, it is that the physical machine specified configures specified address by configuration file according to the second distribution requirements
Pond, and the IP address in given pool is integrally incorporated in total address pool.
Dynamically distributes module 404 is additionally operable to, and whether the physical machine where judging the container of IP address to be allocated is configured with finger
Determine address pool;If it is not, IP address unbound in total address pool is distributed to IP address to be allocated by dynamically distributes module
Container;Otherwise, dynamically distributes module distributes to IP address unbound in given pool the appearance of IP address to be allocated
Device.Dynamically distributes module is additionally operable to, and judges whether given pool and the given pool of other physical machines have common factor;If
There is common factor, then export error information;Otherwise, the IP address in unallocated list in given pool is distributed into IP to be allocated
The container of address, and will be removed in IP address never distribution list, and IP address is corresponding with the container for obtaining IP address
Ground is recorded in distribution list.
During IP address is distributed, static allocation module and dynamically distributes module will in the way of going out team and joining the team
IP address distributes to the container of IP address to be allocated in total address pool.And the container IP address distribution of the embodiment of the present invention
System also includes creation module, after carrying out static allocation or dynamically distributes, according to allocated IP address, to treat point
Container with IP address creates a pair of veth-pair.
The system of the container IP address distribution of the embodiment of the present invention writes one generally by the database in advance in etcd
Location pond, each kubelet nodes can freely share this total address pool as needed.Each kubelet nodes can be with root
According to demand, by being that the kubelet nodes configure given pool in configuration file, but given pool belongs to etcd
In total address pool for being previously written.If being configured without given pool, during IP address is distributed, acquiescence uses
Default total address pool in etcd.Meanwhile the system of the container IP address distribution of the embodiment of the present invention additionally provides container and IP
The function of address binding, unlike DHCP (Dynamic Host Configuration Protocol, DHCP)
In bound by MAC Address and IP address, the binding in the system of the container IP address of embodiment of the present invention distribution be by
Container label and IP address are bound.The system of the container IP address distribution of the embodiment of the present invention will also create one
Veth-pair, one end are sent to inside container, and one end exists in external container in the form of network interface card.It need not be connect using bridge joint
Mouthful, network bag is forwarded directly to inside container from network interface card.The system distributed by the container IP address of the embodiment of the present invention is distributed
Address be exactly to be allocated to network interface card inside container, it is necessary to just can guarantee that the unobstructed of networking with the use of route.
Fig. 5 shows the method that the container IP address of the embodiment of the present invention can be applied to distribute or the distribution of container IP address
System exemplary system architecture 500.
As shown in figure 5, system architecture 500 can include terminal device 501,502,503, network 504 and server 505.
Network 504 between terminal device 501,502,503 and server 505 provide communication link medium.Network 504 can
With including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 501,502,503 by network 504 with server 505, to receive or send out
Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 501,502,503
The application of page browsing device, searching class application, JICQ, mailbox client, social platform software etc..
Terminal device 501,502,503 can have a display screen and a various electronic equipments that supported web page browses, bag
Include but be not limited to smart mobile phone, tablet personal computer, pocket computer on knee and desktop computer etc..
Server 505 can be to provide the server of various services, for example, to user using terminal device 501,502,
The 503 shopping class websites browsed provide the back-stage management server supported.Back-stage management server can be to receiving production
The data such as product information inquiring request are carried out the processing such as analyzing, and result is fed back into terminal device.
It should be noted that the method for the container IP address distribution that the embodiment of the present invention is provided is typically by server 505
Perform, correspondingly, the system of container IP address distribution is generally positioned in server 505.
It should be understood that the number of the terminal device, network and server in Fig. 5 is only schematical.According to realizing need
Will, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates suitable for for realizing the computer system of the terminal device of the embodiment of the present invention
600 structural representation.Terminal device shown in Fig. 6 is only an example, to the function of the embodiment of the present invention and should not be made
With range band come any restrictions.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or the program being loaded into from storage part 608 in random access storage device (RAM) 603
And perform various appropriate actions and processing.In RAM 603, also it is stored with system 600 and operates required various program sums
According to.CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 also connects
To bus 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;Penetrated including such as negative electrode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part including hard disk etc.
608;And the communications portion 609 of the NIC including LAN card, modem etc..Communications portion 609 via
The network of such as internet performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media
611, such as disk, CD, magneto-optic disk, semiconductor memory etc., as needed be arranged on driver 610 on, in order to from
The computer program read thereon is mounted into storage part 608 as needed.
Especially, according to embodiment disclosed by the invention, may be implemented as counting above with reference to the process of flow chart description
Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product, it includes being carried on calculating
Computer program on machine computer-readable recording medium, the computer program include the program code for being used for the method shown in execution flow chart.
In such embodiments, the computer program can be downloaded and installed by communications portion 609 from network, and/or
It is mounted from detachable media 611.When the computer program is performed by CPU (CPU) 601, the present invention is performed
System in the above-mentioned function that limits.
It should be noted that the computer-readable medium shown in the present invention can be computer-readable signal media or
Computer-readable recording medium either the two any combination.Computer-readable recording medium for example can be ---
But be not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than group
Close.The more specifically example of computer-readable recording medium can include but is not limited to:Electricity with one or more wires
Connection, portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed
Read-only storage (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic
Memory device or above-mentioned any appropriate combination.In the present invention, computer-readable recording medium can be any bag
Contain or the tangible medium of storage program, the program can be commanded the either device use or in connection of execution system, device
Use.And in the present invention, computer-readable signal media can include propagating in a base band or as a carrier wave part
Data-signal, wherein carrying computer-readable program code.The data-signal of this propagation can use a variety of shapes
Formula, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media is also
Can be any computer-readable medium beyond computer-readable recording medium, the computer-readable medium can send, pass
Broadcast and either transmit for by the use of instruction execution system, device or device or program in connection.Computer
The program code included on computer-readable recording medium can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, light
Cable, RF etc., or above-mentioned any appropriate combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of various embodiments of the invention, method and computer journey
Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can be with
Represent a part for a module, program segment or code, the part of above-mentioned module, program segment or code include one or
Multiple executable instructions for being used to realize defined logic function.It should also be noted that some as replace realization in, side
The function of being marked in frame can also be with different from the order marked in accompanying drawing generation.For example, two sides succeedingly represented
Frame can essentially be performed substantially in parallel, and they can also be performed in the opposite order sometimes, this according to involved function and
It is fixed.It is also noted that the combination of each square frame and block diagram in block diagram or flow chart or the square frame in flow chart, can
Realized with the function as defined in execution or the special hardware based system of operation, or specialized hardware and meter can be used
The combination of calculation machine instruction is realized.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be passed through
The mode of hardware is realized.Described module can also be set within a processor, for example, can be described as:A kind of processor
Including configuration module, judge module, static allocation module and dynamically distributes module.Wherein, the title of these modules is in certain feelings
The restriction to the module in itself is not formed under condition, for example, configuration module be also described as " configure total address pool it
Afterwards, the part IP address in total address pool is established with corresponding container according to the first distribution requirements and tied up correspondingly
Determine the module of relation ".
As on the other hand, present invention also offers a kind of computer-readable medium, the computer-readable medium can be
Included in equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in.Above-mentioned meter
Calculation machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the equipment,
So that the equipment includes:After configuring total address pool, according to the first distribution requirements by the part IP in total address pool
One-to-one binding relationship is established in location with corresponding container;In the case of the request for receiving distribution IP address, judge to treat point
Whether the container with IP address with the IP address in total address pool establishes binding relationship;If it is, carry out static point
Match somebody with somebody, the static allocation includes:The IP address that the container of the IP address to be allocated is bound in total address pool is distributed
Container to the IP address to be allocated;Otherwise, dynamically distributes are carried out, the dynamically distributes include:By total address pool
In unbound IP address distribute to the container of the IP address to be allocated.
Technical scheme according to embodiments of the present invention, it is configured with a total address pool and is used to all containers in cluster,
And ensure that any one address can use in all nodes.And binding relationship is established by container label and IP address,
It is constant to realize IP address when container is restarted or migrated.Tied up by integrating dynamic IP addressing distribution and STATIC IP ADDRESSING
Due to one, network topology is more convenient.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright
It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.Appoint
Modifications, equivalent substitutions and improvements what is made within the spirit and principles in the present invention etc., it should be included in present invention protection model
Within enclosing.
Claims (17)
- A kind of 1. method of container IP address distribution, it is characterised in that including:The part IP address in total address pool is established into one-to-one binding with corresponding container according to the first distribution requirements to close System;In the case of the request for receiving distribution IP address, judge whether the container of IP address to be allocated has to bind with IP address and close System;If so, the IP address bound in the container of the IP address to be allocated is then distributed into the container;Otherwise, IP address unbound in total address pool is distributed to the container of the IP address to be allocated.
- 2. according to the method for claim 1, it is characterised in thatDescribed established the part IP address in total address pool with corresponding container according to the first distribution requirements is tied up correspondingly The step of determining relation includes:Part IP address is read out from total address pool according to the first distribution requirements, and according to first point Determine to treat the binding tab of the container of binding IP address with demand;The binding tab and the IP address read out are established one To one corresponding relation;The corresponding relation is recorded in static allocation list;Whether the container for judging IP address to be allocated with IP address has the step of binding relationship to include:With judging IP to be allocated Whether the container of location has binding tab;The step of IP address by bound in the container of the IP address to be allocated distributes to the container includes:Obtain and treat point The binding tab of container with IP address;IP corresponding to being found out according to the binding tab in the static allocation list Location;The IP address is distributed to the container of the IP address to be allocated.
- 3. according to the method for claim 1, it is characterised in that it is described according to the first distribution requirements by the portion in total address pool Before the step of point IP address establishes one-to-one binding relationship with corresponding container, in addition to:According to predetermined IP Number of addresses configures total address pool;Then total address pool is stored in etcd database.
- 4. according to the method for claim 1, it is characterised in thatDescribed established the part IP address in total address pool with corresponding container according to the first distribution requirements is tied up correspondingly Before the step of determining relation, in addition to:It is that the physical machine specified configures specified ground by configuration file according to the second distribution requirements Location pond, and the IP address in the given pool is integrally incorporated in total address pool;Described the step of IP address unbound in total address pool is distributed into the container of the IP address to be allocated, includes: Whether the physical machine where judging the container of the IP address to be allocated is configured with given pool;If it is not, by described in Unbound IP address distributes to the container of the IP address to be allocated in total address pool;Otherwise, by the given pool Unbound IP address distributes to the container of the IP address to be allocated.
- 5. according to the method for claim 4, it is characterised in that described by IP address point unbound in total address pool Also include the step of the container of IP address to be allocated described in dispensing:Judge whether the given pool and the given pool of other physical machines have common factor;If occuring simultaneously, then error information is exported;Otherwise, the IP address in unallocated list in the given pool is distributed To the container of the IP address to be allocated, and will be removed in the IP address never distribution list, and by the IP address Container with obtaining the IP address is accordingly recorded in distribution list.
- 6. according to the method for claim 1, it is characterised in thatThe step of IP address by bound in the container of the IP address to be allocated distributes to the container includes:According to current The order determination of the IP address of binding is located at primary IP address, and the IP address then is distributed into the container;Described the step of IP address unbound in total address pool is distributed into the container of the IP address to be allocated, includes: Determined to be located at primary IP address according to the order of IP address unbound in total address pool, then distribute to the IP address The container.
- 7. according to the method for claim 1, it is characterised in that after IP address is distributed into container, in addition to:According to allocated IP address, a pair of veth-pair are created to obtain the container of the IP address.
- A kind of 8. system of container IP address distribution, it is characterised in that including:Configuration module, for being established the part IP address in total address pool one by one with corresponding container according to the first distribution requirements Corresponding binding relationship;Judge module, for receive distribution IP address request in the case of, judge IP address to be allocated container whether There is binding relationship with IP address;Static allocation module, for judging that the container of the IP address to be allocated has binding with IP address in the judge module After relation, the IP address bound in the container of the IP address to be allocated is distributed into the container;Dynamically distributes module, for judging that the container of the IP address to be allocated is not tied up with IP address in the judge module After determining relation, IP address unbound in total address pool is distributed to the container of the IP address to be allocated.
- 9. system according to claim 8, it is characterised in thatThe configuration module is additionally operable to, and part IP address is read out from total address pool according to the first distribution requirements, and according to First distribution requirements are determined to treat the binding tab of the container of binding IP address;By the binding tab and the IP address read out Establish man-to-man corresponding relation;The corresponding relation is recorded in static allocation list;The judge module is additionally operable to, and judges the container of IP address to be allocated and whether has binding tab.
- 10. system according to claim 9, it is characterised in that the static allocation module includes:Acquiring unit, the binding tab of the container for obtaining IP address to be allocated;Searching unit, for finding out corresponding IP address in the static allocation list according to the binding tab;Allocation unit, for the IP address to be distributed to the container of the IP address to be allocated.
- 11. system according to claim 8, it is characterised in that the configuration module is additionally operable to, according to the first distribution need Before asking the step of part IP address in total address pool is established into one-to-one binding relationship with corresponding container, according to pre- The total address pool of IP address quantity configuration first determined;Then total address pool is stored in etcd database.
- 12. system according to claim 8, it is characterised in that the configuration module is additionally operable to, according to the first distribution requirements Before the step of part IP address in total address pool is established into one-to-one binding relationship with corresponding container, according to second Distribution requirements are that the physical machine specified configures given pool, and the IP address in the given pool by configuration file It is integrally incorporated in total address pool;AndThe dynamically distributes model is additionally operable to, and whether the physical machine where judging the container of the IP address to be allocated is configured with finger Determine address pool;If it is not, IP address unbound in total address pool is distributed to the appearance of the IP address to be allocated Device;Otherwise, IP address unbound in the given pool is distributed to the container of the IP address to be allocated.
- 13. system according to claim 12, it is characterised in that the dynamically distributes module is additionally operable to, and judges the finger Whether the given pool for determining address pool and other physical machines has common factor;If occuring simultaneously, then error information is exported;Otherwise, will IP address in the given pool in unallocated list distributes to the container of the IP address to be allocated, and by the IP Removed in the never distribution list of address, and the IP address has been divided with obtaining the container of the IP address and being accordingly recorded in With in list.
- 14. system according to claim 8, it is characterised in thatThe static allocation module is additionally operable to, and is determined to be located at primary IP address according to the order of the IP address of current bindings, Then the IP address is distributed into the container;The dynamically distributes module is additionally operable to, and is determined according to the order of IP address unbound in total address pool positioned at primary IP address, the IP address is then distributed into the container.
- 15. system according to claim 8, it is characterised in that also include:Creation module, after IP address is distributed into container, according to allocated IP address, to obtain the appearance of the IP address Device creates a pair of veth-pair.
- A kind of 16. container IP address assigned unit, it is characterised in that including:One or more processors;Storage device, for storing one or more programs,When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1-7.
- 17. a kind of computer-readable medium, is stored thereon with computer program, it is characterised in that described program is held by processor The method as described in any in claim 1-7 is realized during row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710854707.2A CN107580083B (en) | 2017-09-20 | 2017-09-20 | Method and system for allocating IP addresses of containers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710854707.2A CN107580083B (en) | 2017-09-20 | 2017-09-20 | Method and system for allocating IP addresses of containers |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107580083A true CN107580083A (en) | 2018-01-12 |
CN107580083B CN107580083B (en) | 2020-11-03 |
Family
ID=61036356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710854707.2A Active CN107580083B (en) | 2017-09-20 | 2017-09-20 | Method and system for allocating IP addresses of containers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107580083B (en) |
Cited By (37)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108494880A (en) * | 2018-04-18 | 2018-09-04 | 云家园网络技术有限公司 | Communication means based on large-scale data centre management and system |
CN108810192A (en) * | 2018-07-20 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of static IP configuration method, device, equipment and readable storage medium storing program for executing |
CN108881455A (en) * | 2018-06-28 | 2018-11-23 | 西北工业大学 | Data encapsulation and transmission method in the isomery cloud storage system of low capacity memory node |
CN109462511A (en) * | 2018-12-11 | 2019-03-12 | 中科曙光国际信息产业有限公司 | The method for building up and device of network |
CN110138606A (en) * | 2019-05-06 | 2019-08-16 | 携程旅游信息技术(上海)有限公司 | Capacitor network configuration method and system |
CN110149422A (en) * | 2019-06-25 | 2019-08-20 | 苏州梦嘉信息技术有限公司 | A kind of domain name management method and system |
CN110445884A (en) * | 2018-05-04 | 2019-11-12 | 中国移动通信集团浙江有限公司 | A kind of container IP address management method and device |
CN110716787A (en) * | 2018-07-13 | 2020-01-21 | 中兴通讯股份有限公司 | Container address setting method, apparatus, and computer-readable storage medium |
CN110750332A (en) * | 2019-10-23 | 2020-02-04 | 广西梯度科技有限公司 | Method for setting static IP (Internet protocol) in Pod in Kubernetes |
CN110769075A (en) * | 2018-07-25 | 2020-02-07 | 中国电信股份有限公司 | Container communication method, system, controller and computer readable storage medium |
CN111124604A (en) * | 2019-12-05 | 2020-05-08 | 北京金山云网络技术有限公司 | Method, device, equipment and storage medium for allocating Pod (POD) IP addresses |
CN111147297A (en) * | 2019-12-23 | 2020-05-12 | 广东省新一代通信与网络创新研究院 | Multi-layer network plane construction method of kubernets |
CN111193783A (en) * | 2019-12-19 | 2020-05-22 | 新浪网技术(中国)有限公司 | Service access processing method and device |
CN111352689A (en) * | 2018-12-21 | 2020-06-30 | 中国电信股份有限公司 | Method and device for realizing seamless migration of application containerized deployment |
CN111491040A (en) * | 2020-04-09 | 2020-08-04 | 北京城市网邻信息技术有限公司 | IP distribution method and IP distribution device |
CN111835880A (en) * | 2020-06-23 | 2020-10-27 | 新浪网技术(中国)有限公司 | IP address allocation method and system |
WO2020232887A1 (en) * | 2019-05-17 | 2020-11-26 | 平安科技(深圳)有限公司 | Configuration modification method and apparatus for container application, and computer device and storage medium |
CN112153167A (en) * | 2020-08-06 | 2020-12-29 | 北京百度网讯科技有限公司 | Internet interconnection protocol management method, device, electronic equipment and storage medium |
CN112243044A (en) * | 2019-07-16 | 2021-01-19 | 广州虎牙科技有限公司 | Container address allocation method and device |
CN112565475A (en) * | 2020-12-01 | 2021-03-26 | 成都精灵云科技有限公司 | IP address allocation method for adding new node to container cluster service layer |
CN112769965A (en) * | 2019-10-21 | 2021-05-07 | 中盈优创资讯科技有限公司 | IP address management and distribution method, device and system |
CN113037522A (en) * | 2019-12-24 | 2021-06-25 | 华为数字技术(苏州)有限公司 | Container unit management method and related equipment |
CN113055500A (en) * | 2019-12-26 | 2021-06-29 | 中国电信股份有限公司 | Address request method, device and computer readable storage medium |
CN113766042A (en) * | 2021-01-20 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Container address configuration method, system, device, equipment and medium |
CN114070822A (en) * | 2021-11-17 | 2022-02-18 | 苏州博纳讯动软件有限公司 | Kubernetes Overlay IP address management method |
CN114124905A (en) * | 2021-11-03 | 2022-03-01 | 中盈优创资讯科技有限公司 | Method and device for judging static address pool address occupation condition statistics |
CN114328330A (en) * | 2021-11-22 | 2022-04-12 | 广州极飞科技股份有限公司 | Address allocation method, equipment management and irrigation system, slave machine and input equipment |
CN114500523A (en) * | 2021-11-29 | 2022-05-13 | 上海浦东发展银行股份有限公司 | Fixed IP application release method based on container cloud platform |
CN114567617A (en) * | 2022-02-25 | 2022-05-31 | 苏州浪潮智能科技有限公司 | IP address allocation method, system, electronic device and storage medium |
CN114640652A (en) * | 2022-02-24 | 2022-06-17 | 联想(北京)有限公司 | Information processing method and device |
CN114827017A (en) * | 2022-03-31 | 2022-07-29 | 北京声智科技有限公司 | Kafka cluster communication method and device, electronic equipment and storage medium |
CN115174529A (en) * | 2021-03-18 | 2022-10-11 | 北京金山云网络技术有限公司 | Network processing method and device, electronic equipment and storage medium |
CN115361359A (en) * | 2022-08-18 | 2022-11-18 | 中电云数智科技有限公司 | IP address management device and method based on kubernets |
CN115801733A (en) * | 2023-02-02 | 2023-03-14 | 天翼云科技有限公司 | Network address allocation method and device, electronic equipment and readable medium |
CN116016438A (en) * | 2022-12-12 | 2023-04-25 | 上海道客网络科技有限公司 | Method and system for uniformly distributing IP addresses by multiple subnets based on container cloud platform |
US11671401B2 (en) | 2021-03-25 | 2023-06-06 | Cisco Technology, Inc. | Providing persistent external internet protocol address for extra-cluster services |
US12028314B2 (en) | 2023-03-15 | 2024-07-02 | Cisco Technology, Inc. | Providing persistent external internet protocol address for extra-cluster services |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951360A (en) * | 2015-06-30 | 2015-09-30 | 北京奇虎科技有限公司 | Configuration management mode and device based on Docker |
CN105491123A (en) * | 2015-12-04 | 2016-04-13 | 北京航空航天大学 | Communication method and device among containers |
CN105635336A (en) * | 2015-12-31 | 2016-06-01 | 北京轻元科技有限公司 | Dynamic and adaptive mixed cloud network management method |
CN105763670A (en) * | 2016-04-08 | 2016-07-13 | 北京搜狐新媒体信息技术有限公司 | Method and device for allocating IP address to container |
CN105893133A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Application service seamless migration method and system based on container technology |
CN105897946A (en) * | 2016-04-08 | 2016-08-24 | 北京搜狐新媒体信息技术有限公司 | Obtaining method and system of access address |
CN105978781A (en) * | 2016-06-28 | 2016-09-28 | 浪潮电子信息产业股份有限公司 | Method and system for establishing network connection of Docker container, and client side |
CN106686088A (en) * | 2016-12-30 | 2017-05-17 | 广东浪潮大数据研究有限公司 | Management method supporting multi-network mode of Docker environment |
CN106878484A (en) * | 2017-02-27 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of method of configuration Docker cluster external containers IP |
CN106953943A (en) * | 2017-04-25 | 2017-07-14 | 中国联合网络通信集团有限公司 | Suitable for the method and device of switch communication |
US9934073B2 (en) * | 2015-10-23 | 2018-04-03 | Futurewei Technologies, Inc. | Extension of resource constraints for service-defined containers |
-
2017
- 2017-09-20 CN CN201710854707.2A patent/CN107580083B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951360A (en) * | 2015-06-30 | 2015-09-30 | 北京奇虎科技有限公司 | Configuration management mode and device based on Docker |
US9934073B2 (en) * | 2015-10-23 | 2018-04-03 | Futurewei Technologies, Inc. | Extension of resource constraints for service-defined containers |
CN105491123A (en) * | 2015-12-04 | 2016-04-13 | 北京航空航天大学 | Communication method and device among containers |
CN105635336A (en) * | 2015-12-31 | 2016-06-01 | 北京轻元科技有限公司 | Dynamic and adaptive mixed cloud network management method |
CN105893133A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Application service seamless migration method and system based on container technology |
CN105763670A (en) * | 2016-04-08 | 2016-07-13 | 北京搜狐新媒体信息技术有限公司 | Method and device for allocating IP address to container |
CN105897946A (en) * | 2016-04-08 | 2016-08-24 | 北京搜狐新媒体信息技术有限公司 | Obtaining method and system of access address |
CN105978781A (en) * | 2016-06-28 | 2016-09-28 | 浪潮电子信息产业股份有限公司 | Method and system for establishing network connection of Docker container, and client side |
CN106686088A (en) * | 2016-12-30 | 2017-05-17 | 广东浪潮大数据研究有限公司 | Management method supporting multi-network mode of Docker environment |
CN106878484A (en) * | 2017-02-27 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of method of configuration Docker cluster external containers IP |
CN106953943A (en) * | 2017-04-25 | 2017-07-14 | 中国联合网络通信集团有限公司 | Suitable for the method and device of switch communication |
Cited By (55)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108494880A (en) * | 2018-04-18 | 2018-09-04 | 云家园网络技术有限公司 | Communication means based on large-scale data centre management and system |
CN108494880B (en) * | 2018-04-18 | 2021-04-27 | 云家园网络技术有限公司 | Communication method and system based on large-scale data center management |
CN110445884A (en) * | 2018-05-04 | 2019-11-12 | 中国移动通信集团浙江有限公司 | A kind of container IP address management method and device |
CN108881455A (en) * | 2018-06-28 | 2018-11-23 | 西北工业大学 | Data encapsulation and transmission method in the isomery cloud storage system of low capacity memory node |
CN108881455B (en) * | 2018-06-28 | 2020-12-08 | 西北工业大学 | Data packaging and transmission method in heterogeneous cloud storage system of low-capacity storage node |
CN110716787A (en) * | 2018-07-13 | 2020-01-21 | 中兴通讯股份有限公司 | Container address setting method, apparatus, and computer-readable storage medium |
CN108810192A (en) * | 2018-07-20 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of static IP configuration method, device, equipment and readable storage medium storing program for executing |
CN110769075A (en) * | 2018-07-25 | 2020-02-07 | 中国电信股份有限公司 | Container communication method, system, controller and computer readable storage medium |
CN109462511B (en) * | 2018-12-11 | 2021-12-24 | 中科曙光国际信息产业有限公司 | Network establishing method and device |
CN109462511A (en) * | 2018-12-11 | 2019-03-12 | 中科曙光国际信息产业有限公司 | The method for building up and device of network |
CN111352689A (en) * | 2018-12-21 | 2020-06-30 | 中国电信股份有限公司 | Method and device for realizing seamless migration of application containerized deployment |
CN110138606B (en) * | 2019-05-06 | 2022-03-15 | 携程旅游信息技术(上海)有限公司 | Container network configuration method and system |
CN110138606A (en) * | 2019-05-06 | 2019-08-16 | 携程旅游信息技术(上海)有限公司 | Capacitor network configuration method and system |
WO2020232887A1 (en) * | 2019-05-17 | 2020-11-26 | 平安科技(深圳)有限公司 | Configuration modification method and apparatus for container application, and computer device and storage medium |
CN110149422A (en) * | 2019-06-25 | 2019-08-20 | 苏州梦嘉信息技术有限公司 | A kind of domain name management method and system |
CN112243044B (en) * | 2019-07-16 | 2023-05-19 | 广州虎牙科技有限公司 | Container address allocation method and device |
CN112243044A (en) * | 2019-07-16 | 2021-01-19 | 广州虎牙科技有限公司 | Container address allocation method and device |
CN112769965A (en) * | 2019-10-21 | 2021-05-07 | 中盈优创资讯科技有限公司 | IP address management and distribution method, device and system |
CN112769965B (en) * | 2019-10-21 | 2023-02-07 | 中盈优创资讯科技有限公司 | IP address management and distribution method, device and system |
CN110750332A (en) * | 2019-10-23 | 2020-02-04 | 广西梯度科技有限公司 | Method for setting static IP (Internet protocol) in Pod in Kubernetes |
CN111124604A (en) * | 2019-12-05 | 2020-05-08 | 北京金山云网络技术有限公司 | Method, device, equipment and storage medium for allocating Pod (POD) IP addresses |
CN111124604B (en) * | 2019-12-05 | 2023-07-14 | 北京金山云网络技术有限公司 | Method, device, equipment and storage medium for distributing pod IP address |
CN111193783A (en) * | 2019-12-19 | 2020-05-22 | 新浪网技术(中国)有限公司 | Service access processing method and device |
CN111147297A (en) * | 2019-12-23 | 2020-05-12 | 广东省新一代通信与网络创新研究院 | Multi-layer network plane construction method of kubernets |
CN111147297B (en) * | 2019-12-23 | 2022-07-15 | 广东省新一代通信与网络创新研究院 | Multi-layer network plane construction method of kubernets |
CN113037522A (en) * | 2019-12-24 | 2021-06-25 | 华为数字技术(苏州)有限公司 | Container unit management method and related equipment |
CN113055500A (en) * | 2019-12-26 | 2021-06-29 | 中国电信股份有限公司 | Address request method, device and computer readable storage medium |
CN111491040B (en) * | 2020-04-09 | 2023-03-24 | 北京城市网邻信息技术有限公司 | IP distribution method and IP distribution device |
CN111491040A (en) * | 2020-04-09 | 2020-08-04 | 北京城市网邻信息技术有限公司 | IP distribution method and IP distribution device |
CN111835880A (en) * | 2020-06-23 | 2020-10-27 | 新浪网技术(中国)有限公司 | IP address allocation method and system |
CN112153167B (en) * | 2020-08-06 | 2023-02-28 | 北京百度网讯科技有限公司 | Internet interconnection protocol management method, device, electronic equipment and storage medium |
CN112153167A (en) * | 2020-08-06 | 2020-12-29 | 北京百度网讯科技有限公司 | Internet interconnection protocol management method, device, electronic equipment and storage medium |
CN112565475A (en) * | 2020-12-01 | 2021-03-26 | 成都精灵云科技有限公司 | IP address allocation method for adding new node to container cluster service layer |
CN113766042A (en) * | 2021-01-20 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Container address configuration method, system, device, equipment and medium |
CN115174529B (en) * | 2021-03-18 | 2024-01-23 | 北京金山云网络技术有限公司 | Network processing method and device, electronic equipment and storage medium |
CN115174529A (en) * | 2021-03-18 | 2022-10-11 | 北京金山云网络技术有限公司 | Network processing method and device, electronic equipment and storage medium |
US11671401B2 (en) | 2021-03-25 | 2023-06-06 | Cisco Technology, Inc. | Providing persistent external internet protocol address for extra-cluster services |
CN114124905A (en) * | 2021-11-03 | 2022-03-01 | 中盈优创资讯科技有限公司 | Method and device for judging static address pool address occupation condition statistics |
CN114070822A (en) * | 2021-11-17 | 2022-02-18 | 苏州博纳讯动软件有限公司 | Kubernetes Overlay IP address management method |
CN114070822B (en) * | 2021-11-17 | 2022-10-14 | 江苏博云科技股份有限公司 | Kubernetes Overlay IP address management method |
CN114328330A (en) * | 2021-11-22 | 2022-04-12 | 广州极飞科技股份有限公司 | Address allocation method, equipment management and irrigation system, slave machine and input equipment |
CN114328330B (en) * | 2021-11-22 | 2024-06-07 | 广州极飞科技股份有限公司 | Address allocation method, equipment management and irrigation system, slave and input equipment |
CN114500523A (en) * | 2021-11-29 | 2022-05-13 | 上海浦东发展银行股份有限公司 | Fixed IP application release method based on container cloud platform |
CN114500523B (en) * | 2021-11-29 | 2024-04-26 | 上海浦东发展银行股份有限公司 | Fixed IP application publishing method based on container cloud platform |
CN114640652B (en) * | 2022-02-24 | 2023-09-19 | 联想(北京)有限公司 | Information processing method and device |
CN114640652A (en) * | 2022-02-24 | 2022-06-17 | 联想(北京)有限公司 | Information processing method and device |
CN114567617B (en) * | 2022-02-25 | 2023-08-04 | 苏州浪潮智能科技有限公司 | IP address allocation method, system, electronic equipment and storage medium |
CN114567617A (en) * | 2022-02-25 | 2022-05-31 | 苏州浪潮智能科技有限公司 | IP address allocation method, system, electronic device and storage medium |
CN114827017A (en) * | 2022-03-31 | 2022-07-29 | 北京声智科技有限公司 | Kafka cluster communication method and device, electronic equipment and storage medium |
CN114827017B (en) * | 2022-03-31 | 2024-01-30 | 北京声智科技有限公司 | Communication method and device of Kafka cluster, electronic equipment and storage medium |
CN115361359A (en) * | 2022-08-18 | 2022-11-18 | 中电云数智科技有限公司 | IP address management device and method based on kubernets |
CN116016438A (en) * | 2022-12-12 | 2023-04-25 | 上海道客网络科技有限公司 | Method and system for uniformly distributing IP addresses by multiple subnets based on container cloud platform |
CN116016438B (en) * | 2022-12-12 | 2023-08-15 | 上海道客网络科技有限公司 | Method and system for uniformly distributing IP addresses by multiple subnets based on container cloud platform |
CN115801733A (en) * | 2023-02-02 | 2023-03-14 | 天翼云科技有限公司 | Network address allocation method and device, electronic equipment and readable medium |
US12028314B2 (en) | 2023-03-15 | 2024-07-02 | Cisco Technology, Inc. | Providing persistent external internet protocol address for extra-cluster services |
Also Published As
Publication number | Publication date |
---|---|
CN107580083B (en) | 2020-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107580083A (en) | A kind of method and system of container IP address distribution | |
CN105979009B (en) | A kind of increase load automatic balancing method for cloud application container | |
CN109582441A (en) | For providing system, the method and apparatus of container service | |
CN109656686A (en) | The upper deployment container cloud method of OpenStack, storage medium, electronic equipment and system | |
CN105103506B (en) | For the method and system for the non-homogeneous bandwidth request allocation bandwidth in system for cloud computing | |
CN102571698B (en) | Access authority control method, system and device for virtual machine | |
CN105024865B (en) | Cloud joint services | |
CN106790660A (en) | A kind of dispositions method and device for realizing distributed memory system | |
CN107357660A (en) | The distribution method and device of a kind of virtual resource | |
CN109032760A (en) | Method and apparatus for application deployment | |
CN110178357A (en) | Cellular service based on cloud in the accessible cloud of remote equipment | |
CN106301829A (en) | A kind of method and apparatus of Network dilatation | |
CN109561171A (en) | The configuration method and device of virtual private cloud service | |
WO2017113201A1 (en) | Network service lifecycle management method and device | |
CN108255497A (en) | The dispositions method and device of a kind of application | |
CN105915470B (en) | A kind of elastic bandwidth configuration method based on Linux flow control | |
CN110881007B (en) | Container cluster network access method and device | |
CN104951360A (en) | Configuration management mode and device based on Docker | |
CN109587281A (en) | Container configuration method and calculate node | |
CN102857370A (en) | Resource allocating method and device | |
CN103685608A (en) | Method and device for automatically configuring IP (Internet Protocol) address of security virtual machine | |
CN110019125A (en) | The method and apparatus of data base administration | |
CN108111332A (en) | Using the mixing cloud management system and method for SDN | |
CN103441935B (en) | Automatically method and the device of the syntople of identified server and access switch | |
CN107846313A (en) | A kind of method and the network equipment of network service template generation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |