Network deployment method, device and equipment and computer readable storage medium

By setting the switch port mode and interconnecting virtual private cloud subnet information, the problem of incommunication between Openstack and Kubernetes is solved, and the mutual calls of virtual machines and containerized applications in the cloud platform are realized.

CN119696956AActive Publication Date: 2025-03-25INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202412000362.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-25
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

Network interoperability between Openstack and Kubernetes cannot be achieved, resulting in the inability of virtual machines and containerized applications in the cloud platform to call each other.

Method used

By obtaining the virtual machines and bare metal of the cloud infrastructure platform, as well as the containerized application bare metal of the container orchestration platform, setting the corresponding switch port mode, and obtaining virtual private cloud subnet information, the virtual machines, bare metal and containerized application bare metal network are interconnected based on this information.

Benefits of technology

The network interoperability between Openstack and Kubernetes is realized, allowing virtual machines and containerized applications to call each other, enhancing the interoperability of the cloud platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119696956A_ABST
    Figure CN119696956A_ABST
Patent Text Reader

Abstract

The invention discloses a network deployment method, device and equipment and a computer readable storage medium, and is applied to the technical field of computers, and the method comprises the steps: obtaining a virtual machine and bare metal of a cloud infrastructure platform, and containerized application bare metal of a container arrangement platform; the containerized application of the bare metal is the bare metal for deploying a container arrangement platform in the bare metal; setting a switch port mode of the virtual machine and a port mode of the containerized application bare metal as a multi-virtual local area network port mode, and setting a switch port mode of the bare metal as a single-virtual local area network port mode; and interconnecting the virtual machine configured with the port mode, the bare metal and the network of the containerized application bare metal based on the virtual private cloud subnet information. According to the invention, the containerized application bare metal integrated with the container arrangement platform and the ports of the virtual machine and the bare metal are configured, so that the cloud infrastructure platform and the container arrangement platform can access the same virtual private cloud network, thereby realizing network interconnection and intercommunication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network deployment method, device, equipment and computer-readable storage medium. Background Art

[0002] Openstack (cloud infrastructure platform) and Kubernetes (open source container orchestration platform) are the current mainstream cloud application management solutions. Openstack is used in the management of virtual machines and bare metal, and Kubernetes is used in the management of containers. Usually, cloud platforms have both Openstack and Kubernetes. The network interoperability between Openstack and Kubernetes is very important. The services carried by the virtual machines of Openstack and the services implemented by Kubernetes need to call each other, but the network interoperability between Openstack and Kubernetes cannot be achieved at present.

[0003] It can be seen that how to achieve network interoperability between Openstack and Kubernetes is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a network deployment method, device, equipment and computer-readable storage medium, which solve the technical problem that Openstack and Kubernetes cannot communicate with each other in the prior art.

[0005] In order to solve the above technical problems, the present invention provides a network deployment method, comprising:

[0006] Obtain virtual machines and bare metals of a cloud infrastructure platform, and containerized application bare metals of a container orchestration platform; wherein the bare metals are physical servers that are not configured with an operating system, and the containerized application bare metals are bare metals in which a container orchestration platform is deployed through a cloud platform;

[0007] Setting the switch port mode of the virtual machine to a multi-virtual LAN port mode, setting the switch port mode of the bare metal to a single virtual LAN port mode, and setting the port mode of the containerized application bare metal to a multi-virtual LAN port mode;

[0008] The virtual private cloud subnet information is obtained, and based on the virtual private cloud subnet information, the network of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode are interconnected.

[0009] On the one hand, the acquiring of virtual private cloud subnet information, and interconnecting the network of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode based on the virtual private cloud subnet information, includes:

[0010] When it is determined that the virtual private cloud subnet information is a set virtual private cloud port, it is determined to add a label of the set virtual private cloud port to the network virtualization message to obtain a labeled network virtualization message;

[0011] When it is determined that the tagged network virtualization message is sent to the virtual machine of the cloud infrastructure platform, based on the tagged network virtualization message, the switch port corresponding to the virtual machine is changed to be consistent with the set virtual private cloud port;

[0012] When it is determined that the tagged network virtualization message is sent to the bare metal of the cloud infrastructure platform, based on the tagged network virtualization message, the switch port corresponding to the bare metal is changed to be consistent with the set virtual private cloud port, and when the tagged network virtualization message passes through the switch port corresponding to the bare metal, the label is automatically removed and then enters the bare metal;

[0013] When it is determined that the tagged network virtualization message is sent to the containerized application bare metal, it is determined that the sub-interface of the service network of the containerized application bare metal is set to be consistent with the set virtual private cloud port, and the tagged network virtualization message is transmitted to the network virtualization unit of the container orchestration platform using the sub-interface of the current service network, and is sent to the container in the containerized application bare metal using the network virtualization unit.

[0014] On the one hand, before obtaining the virtual machines and bare metal of the cloud infrastructure platform and the containerized application bare metal of the container orchestration platform, it also includes:

[0015] Physically connect the cloud platform's business network and management network to the switch, and establish a network connection between the cloud platform and bare metal;

[0016] Determine the service subnet information of the containerized application image and the cloud infrastructure platform, and based on the service subnet information and the memory file system of the cloud infrastructure platform, write the containerized application image to the bare metal, and map it to the corresponding hard disk to obtain the containerized application bare metal;

[0017] The containerized application bare metal is started from the hard disk based on the set connection network setting.

[0018] On the one hand, the determining of the service subnet information of the containerized application image and the cloud infrastructure platform, and based on the service subnet information and the memory file system of the cloud infrastructure platform, writing the containerized application image to the bare metal, and mapping it to the corresponding hard disk to obtain the containerized application bare metal, includes:

[0019] Using a bare metal management component in the cloud platform to generate bare metal identifiable network information based on the business subnet information of the cloud infrastructure platform;

[0020] By setting the connection network, the startup mode of the current bare metal node is set to remote startup, and the current bare metal node is restarted and powered on;

[0021] The bare metal started remotely utilizes a switch to obtain the memory file system from the bare metal management component, and powers on the memory file system to mount the bare metal started remotely to the physical node where the bare metal management component is located;

[0022] Using the mounted bare metal management component, the containerized application image and the network information recognizable by the bare metal are written to the bare metal, and mapped to the hard disk of the node where the mounted bare metal management component is located, to obtain the initial containerized application bare metal;

[0023] Using the bare metal management component to set the initial containerized application bare metal to start from the hard disk through the set network connection, and restarting and powering on the initial containerized application bare metal;

[0024] The port configuration component is used to perform configuration based on the business subnet information, and the construction script is automatically executed to build the initial containerized application bare metal to the cloud infrastructure platform, and the initial containerized application bare metal is connected to the virtual private cloud network to obtain the containerized application bare metal.

[0025] On the one hand, the service subnet information is one or more combinations of the attribute requirements of the sub-interface, the virtual LAN to which the sub-interface belongs, the physical interface to which the sub-interface belongs, the actual physical port information, the network address of the sub-interface, the mask of the sub-interface, and the routing information of the sub-interface.

[0026] On the one hand, after obtaining the virtual private cloud subnet information, interconnecting the network of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode based on the virtual private cloud subnet information, it also includes:

[0027] The business network address of the containerized application bare metal is configured on the target sub-interface; wherein the network address and network configuration included in the target sub-interface are different from the network addresses and network configurations of other sub-interfaces to achieve logical isolation between different businesses.

[0028] On the one hand, after obtaining the virtual private cloud subnet information, interconnecting the network of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode based on the virtual private cloud subnet information, it also includes:

[0029] Using a network connectivity test method, testing whether a virtual machine of a cloud infrastructure platform and a containerized application container in the containerized application bare metal have received data packets sent by the other party;

[0030] If the virtual machine of the cloud infrastructure platform and the containerized application container in the containerized application bare metal can receive data packets sent by each other, it is determined that the cloud infrastructure platform and the containerized application are interconnected successfully;

[0031] If the virtual machine of the cloud infrastructure platform and the containerized application container in the containerized application bare metal cannot receive data packets sent by each other, it is determined that the interconnection between the cloud infrastructure platform and the containerized application has failed.

[0032] The embodiment of the present invention further provides a network deployment device, including:

[0033] A cloud platform service acquisition module, used to acquire virtual machines and bare metal of a cloud infrastructure platform, and containerized application bare metal of a container orchestration platform; wherein the bare metal is a physical server without an operating system configured, and the containerized application bare metal is a bare metal in which a container orchestration platform is deployed through a cloud platform;

[0034] A port mode determination module, configured to set the switch port mode of the virtual machine to a multi-virtual LAN port mode, set the switch port mode of the bare metal to a single virtual LAN port mode, and set the port mode of the containerized application bare metal to a multi-virtual LAN port mode;

[0035] The network interconnection module is used to obtain the virtual private cloud subnet information, and interconnect the networks of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode based on the virtual private cloud subnet information.

[0036] The embodiment of the present invention further provides a network deployment device, including:

[0037] Memory for storing computer programs;

[0038] A processor is used to execute the computer program to implement the steps of the above-mentioned network deployment method.

[0039] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned network deployment method are implemented.

[0040] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the above network deployment method when executed by a processor.

[0041] To solve the above technical problems, an embodiment of the present invention provides a network deployment method, which may include: obtaining virtual machines and bare metals of a cloud infrastructure platform, and containerized application bare metals of a container orchestration platform; wherein the bare metal is a physical server without an operating system configured, and the containerized application bare metal is a bare metal of a container orchestration platform deployed in the bare metal through a cloud platform; setting the switch port mode of the virtual machine to a multi-virtual LAN port mode, setting the switch port mode of the bare metal to a single virtual LAN port mode, and setting the port mode of the containerized application bare metal to a multi-virtual LAN port mode; obtaining virtual private cloud subnet information, and interconnecting the networks of the virtual machines, bare metals, and containerized application bare metals that have been configured with port modes based on the virtual private cloud subnet information.

[0042] It can be seen from the above technical scheme that the beneficial effect of the present invention is that compared with the current cloud infrastructure platform and containerized applications that cannot be interconnected and cannot directly send data packets, the present invention obtains the containerized application bare metal on which the container orchestration platform has been deployed, and configures the ports of the containerized application bare metal and the virtual machines and bare metal of the cloud infrastructure platform, so that the containerized application bare metal of the container orchestration platform can access the virtual private cloud network, thereby interconnecting with the virtual machines and bare metal of the cloud infrastructure platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flowchart of a network deployment method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of a bare metal deployment architecture for implementing a container orchestration platform accessing a VPC network provided by an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of the interconnection between a virtual machine, bare metal, and containerized application bare metal provided in an embodiment of the present invention;

[0047] Figure 4A schematic diagram of the structure of a network deployment device provided by an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of the structure of a network deployment device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0051] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0052] Next, a flow chart of a network deployment method provided by an embodiment of the present invention is introduced in detail. Figure 1 A network deployment method provided in an embodiment of the present invention may include:

[0053] S101, obtain virtual machines and bare metal of the cloud infrastructure platform, and containerized application bare metal of the container orchestration platform; wherein the bare metal is a physical server without an operating system configured, and the containerized application bare metal is the bare metal of the container orchestration platform deployed in the bare metal through the cloud platform.

[0054] This embodiment does not limit the specific execution subject. For example, the execution subject of this embodiment can be a cloud platform; or the execution subject in this embodiment can be a node on the cloud platform. The cloud infrastructure platform of this embodiment is Openstack, which is an open source cloud computing management platform project that aims to provide an infrastructure as a service (IaaS) solution. It is not a single software, but consists of multiple core components that work together to achieve the management, scheduling and automation of resource pools, thereby providing users with infrastructure services such as computing, storage and network. The virtual machines of Openstack in this embodiment are virtual instances in the Openstack cloud environment. They run on physical servers through virtualization technology to provide users with computing resources. Bare Metal in this embodiment is a server, which is generally used to indicate that a physical server on which an operating system has not been installed, and can be referred to as bare metal. The container orchestration platform in this embodiment is K8s, and Kubernetes is an open source for managing containerized applications on multiple hosts in a cloud platform. The containerized application bare metal in this embodiment is a bare metal with a container orchestration platform installed. When installing the container orchestration platform, the image of the container orchestration platform can be used for installation, and related network configuration can be performed so that the containerized application bare metal can communicate with the cloud infrastructure platform.

[0055] It should be further explained that, based on the above embodiment, in order to improve the accuracy of bare metal generation of containerized applications, before obtaining the virtual machines and bare metal of the cloud infrastructure platform and the bare metal of the containerized application of the container orchestration platform, it can also include: physically connecting the business network and management network of the cloud platform to the switch, and establishing a set connection network connection between the cloud platform and the bare metal; determining the business subnet information of the containerized application image and the cloud infrastructure platform, and based on the business subnet information and the memory file system of the cloud infrastructure platform, writing the containerized application image to the bare metal, and mapping it in the corresponding hard disk to obtain the bare metal of the containerized application; setting the bare metal of the containerized application to start from the hard disk based on the set connection network. In this embodiment, the business network of the cloud platform is a network used for communication between virtual machines and between virtual machines and computers outside the platform; the management network of the cloud platform in this embodiment is a network dedicated to management and control in the cloud platform. The switch in this embodiment is a switch corresponding to the bare metal of the containerized application. The set connection network in this embodiment can be BMC network is a technology for connecting different systems and applications to achieve real-time sharing and integration of data. The business subnet information in this embodiment includes one or more combinations of the attribute requirements of the sub-interface, the virtual local area network to which the sub-interface belongs, the physical interface to which the sub-interface belongs, the actual physical port information, the network address of the sub-interface, the mask of the sub-interface, and the routing information of the sub-interface. This embodiment establishes a physical connection and sets the connection of the connection network so that the containerized application bare metal and the cloud platform can communicate through the business network and the set connection network and management network. The business subnet information in this embodiment is information such as the port, IP address, mask, and route that characterize the business subnet. The memory file system in this embodiment is a file system that simulates the physical memory of a computer as disk space.

[0056] It should be further explained that, based on the above embodiment, in order to improve the accuracy of bare metal configuration of containerized applications, the above determination of the service subnet information of the containerized application image and the cloud infrastructure platform, and based on the service subnet information and the memory file system of the cloud infrastructure platform, the containerized application image is written to the bare metal, and mapped to the corresponding hard disk, to obtain the containerized application bare metal, including:

[0057] S1: Use the bare metal management component in the cloud platform to generate bare metal identifiable network information based on the business subnet information of the cloud infrastructure platform.

[0058] For easier understanding, please refer to Figure 2 , Figure 2 A schematic diagram of a bare metal deployment architecture for implementing a container orchestration platform accessing a VPC network is provided in an embodiment of the present invention. Figure 2It can be seen that the overall architecture can include cloud platform, switch and bare metal where K8s needs to be deployed. The cloud platform includes ironic-conductor block (bare metal management component): used to write the system image with K8s platform installation package and installation script and the configdrive data to be injected into the Openstack bare metal hard disk and complete the installation of the system image; cloud-init component, used to read the data in configdrive-data for sub-port configuration; deploy-K8s.sh script is used to complete the construction of K8s platform; K8s-image is the container orchestration platform image; in-memory file system, in-memory file system is a virtual file system that treats computer memory as a disk, which simulates the file system on the hard disk in memory; configdrive-data, refers to the data used to configure bare metal in the cloud platform; genericswitch component: used to control the switch to modify the port mode and VLAN ID of the switch port directly connected to the Openstack bare metal when the ironic-conductor component of the cloud platform deploys bare metal. The switch includes a business port and a logical port. The business port usually refers to the service interface provided by the server or system to the outside world, which is used to process business logic and data interaction. The logical port refers to a virtual interface that can realize the data exchange function but does not exist physically and needs to be established through configuration. The containerized application bare metal may include cloud-init components, configdrive-data, deploy-K8s.sh and PF sub-interfaces. The PF sub-interface is a logical sub-interface in the network device that is further divided based on the physical function (Physical Function, referred to as PF). Before step S1, it is necessary to deploy the cloud platform on the physical node, complete the physical connection (network cable networking) between the business network and management network ports of the cloud platform node and the switch, and complete the physical connection between the Openstack bare metal node and the business port of the switch. Complete the connection of the BMC network between the cloud platform node and the Openstack bare metal. The cloud platform node can control the Openstack bare metal node through the BMC to start, shut down and configure the startup mode. This configuration is used to ensure that the physical links of the cloud platform, switch, and Openstack bare metal are reachable. Deploy the cloud platform on the cloud platform physical nodes, and then ensure that the ironic-conductor pod and genericswicth pod services are normal.By specifying the business subnet where K8s-image (K8s image) and Openstack bare metal are located through the front-end interface of the cloud platform, the front-end interface sends the data K8s-image (K8s image) and the business subnet where Openstack bare metal is located (corresponding business subnet information) to the ironic-conductor pod for processing by calling the ironic api. Step S1 means that after Ironic-conductor receives the data, it generates configdrive-data (bare metal identifiable network information) according to the received network information. Because it is necessary to configure the network card sub-interface on the Openstack node. This embodiment does not limit the specific format of the network information identifiable by bare metal. For example, the generated configdrive-data is designed in the following format: Links=[{"id":"test","type":"vlan","vlan_id":10,"vlan_link":"tapf00f587e-60","vlan_mac_address":"3c:fd:fe:e1:d1:19"},{"id":"tapf00f587e-60","vif_id":"f00f587e-6001-4322-9527-d6d4c448dd5a ","type":"phy","mtu":1500,"ethernet_mac_address":"3c:fd:fe:el:d1:19"}]; networks=[{"id":"network0","type":"i pv4","link:"test","ip_address":"8.8.8.215","netmask":"255.255.255.0","routes":[],"network_id":"99ce3ce6-a99d 4be1-0629-03clafbcfbfc"}], where the Links link contains two attributes, as shown in the above format, where the "id":"test" attribute indicates the attribute requirement of the sub-interface, type: "vlan" - indicates that this is a VLAN (virtual LAN) link. Vlan_id represents the VLAN to which the sub-interface belongs. Vlan_link represents the physical interface to which the sub-interface belongs. Another attribute "id":"tapf00f587e-60" represents the information of the actual physical port. vif_id: "f00f587e-6001-4322-9527-d6d4c448dd5a" - the ID of the virtual interface. ype: "phy" - indicates that this is a physical interface.mtu: 1500 - Maximum transmission unit (MTU), that is, the maximum packet size that the interface can handle. "ethernet_mac_address":"3c:fd:fe:el:d1:19"}, after the operating system is powered on, the port can be found by the mac address specified by ethernet_mac_address. The Networks (network configuration) attribute contains the ip address, mask, and routing information of the sub-interface, such as id:"network0" - The unique identifier of this network. type: "ipv4" - Indicates that this is an IPv4 network. "link:"test" means that the sub-interface test is configured with an ip address of 8.8.8.215 and a mask of 255.255.255.0. routes: [] - Routing configuration, here is an empty array, indicating that there are no additional routing rules. network_id: "99ce3ce6-a99d-4be1-0629-03clafbcfbfc" - The unique identifier of the network.

[0059] S2: Set the startup mode of the current bare metal node to remote startup by setting the connection network, and restart the current bare metal node.

[0060] The specific process of this embodiment can be to set the startup mode of the Openstack bare metal node to pxe startup (remote startup) through the BMC network (setting the connection network), and perform a reboot (restart and power on) operation on the Openstack bare metal.

[0061] S3: The bare metal started remotely utilizes a switch to obtain the memory file system from the bare metal management component, and powers on the memory file system to mount the bare metal started remotely to the physical node where the bare metal management component is located.

[0062] The specific process of this embodiment can be that Openstack bare metal is restarted and powered on through the PF port through the switch to the ironic-conductor component of the cloud platform to obtain the memory file system, and then the power-on operation is performed after the memory file system is obtained. After the memory file system is powered on, the memory file system will mount the hard disk of Openstack bare metal to the physical node where the ironic-conductor module is located through iscsi. iscsi (Internet Small Computer System Interface) is a protocol that allows SCSI (Small Computer System Interface) commands and data transmission on an IP network.

[0063] S4: Use the mounted bare metal management component to write the containerized application image and bare metal-recognizable network information to the bare metal, and map it to the hard disk of the node where the mounted bare metal management component is located to obtain the initial containerized application bare metal.

[0064] The specific process of this embodiment is that ironic-conductor (bare metal management component) writes K8s-image (containerized application image) and configdrive-date (bare metal identifiable network information) files to the hard disk of the node where Openstack bare metal is mapped to ironic-conductor. At this time, the ironic-conductor module completes the writing of data to the K8s system disk and configdrive-data.

[0065] S5: Using the bare metal management component to set the initial containerized application bare metal to start from the hard disk by setting a network connection, and restarting and powering on the initial containerized application bare metal.

[0066] Before step S5, this embodiment can use the ironic-conductor component to link with genericswitch to log in to the switch through the management network of the switch, configure the switch port directly connected to the Openstack bare metal to trunk mode through the PLUG_PORT_TO_NETWORK command, and transparently transmit all VLANs.

[0067] PLUG_PORT_TO_NETWORK = (

[0068] 'interface {port}' / / Specify the network interface (port) to be configured

[0069] 'switchport mode trunk' / / Configure the specified port as Trunk

[0070] 'switchport trunk vlan allow all') / / Allow the Trunk port to pass traffic from all VLANs

[0071] In this embodiment, after the Openstack bare metal completes writing the ironic-conductor module image, ironic-conductor sets the Openstack bare metal to start from the hard disk through the BMC network and reboots.

[0072] S6: Use the port configuration component to perform configuration based on the business subnet information, and automatically execute the build script to build the initial containerized application bare metal to the cloud infrastructure platform, connect the initial containerized application bare metal to the virtual private cloud network, and obtain the containerized application bare metal.

[0073] In this embodiment, after the system is powered on, the cloud-init component (port configuration component) reads the data in configdrive-data to configure the subports, and then the system automatically executes the deploy-K8s.sh script to complete the construction of the K8s platform. At this point, a cloud platform bare metal that can be used to implement K8s access to the VPC network has been issued.

[0074] S102, setting the switch port mode of the virtual machine to a multi-virtual LAN port mode, setting the switch port mode of the bare metal to a single virtual LAN port mode, and setting the port mode of the containerized application bare metal to a multi-virtual LAN port mode.

[0075] The multi-virtual LAN port mode in this embodiment is Trunk VLAN. In Trunk mode, one port can transmit data streams of multiple VLANs and can be connected to multiple VLANs. This mode is mainly used to connect ports between switches. The single virtual LAN port mode in this embodiment is Access VLAN. In Access mode, a port can only belong to one VLAN and it only transmits data streams of a single VLAN, that is, this port can only be connected to one VLAN. It should be noted that when the switch port mode of the virtual machine, the bare metal switch port mode, and the containerized application bare metal port mode have been set to the corresponding mode before configuration, here is just a check to ensure that the port mode is correct.

[0076] S103, obtaining virtual private cloud subnet information, and interconnecting the networks of virtual machines, bare metal, and containerized application bare metal configured with port mode based on the virtual private cloud subnet information.

[0077] The virtual private cloud subnet information in this embodiment is the subnet of the VPC (virtual private cloud), and the VPC is a proprietary network, a user-defined private network on the cloud. This embodiment does not limit the specific virtual private cloud subnet information. For example, the virtual private cloud subnet information in this embodiment can be a VLAN network of VLAN 100; or the virtual private cloud subnet information in this embodiment can also be a VLAN network of VLAN 200. Based on the virtual private cloud subnet information, this embodiment interconnects the networks of virtual machines, bare metal, and containerized application bare metal that are configured with port mode, so that each virtual private cloud network can communicate with each other, so that virtual machines, bare metal, and containerized application bare metal can communicate with each other.

[0078] It should be further explained that, based on the above embodiment, the above-mentioned acquisition of virtual private cloud subnet information and interconnection of the networks of virtual machines, bare metal, and containerized application bare metal configured with port mode based on the virtual private cloud subnet information may include:

[0079] S1031, when it is determined that the virtual private cloud subnet information is to set a virtual private cloud port, it is determined to add a tag for setting the virtual private cloud port to the network virtualization message to obtain a tagged network virtualization message.

[0080] S1032, when it is determined that the tagged network virtualization message is sent to the virtual machine of the cloud infrastructure platform, based on the tagged network virtualization message, the switch port corresponding to the virtual machine is changed to be consistent with the set virtual private cloud port.

[0081] Steps S1031 and S1032 in this embodiment indicate that this embodiment is under unified VPC subnet management under the same tenant. Assuming that the subnet is a VLAN network of VLAN 100, the Openstack virtual machine (vm) traffic enters the network virtualization message with a VLAN 100 tag (corresponding to the sub-interface) and enters the switch through the service network (PF) network card. The switch inlet is configured in Trunk mode to transparently transmit the VLAN 100 message.

[0082] S1033, when it is determined that the tagged network virtualization message is sent to the bare metal of the cloud infrastructure platform, based on the tagged network virtualization message, the switch port corresponding to the bare metal is changed to be consistent with the set virtual private cloud port. When the tagged network virtualization message passes through the switch port corresponding to the bare metal, the label is automatically removed and then enters the bare metal.

[0083] This embodiment shows that if the message is sent to the bare metal, it will enter the switch acess vlan port directly connected to the Openstack bare metal uplink network after forwarding. The Access VLAN here is configured as 100. After passing through the port, the VLAN will be stripped off and directly enter the bare metal node to achieve intercommunication.

[0084] S1034, when it is determined that the tagged network virtualization message is sent to the containerized application bare metal, it is determined to set the sub-interface of the service network of the containerized application bare metal to be consistent with the set virtual private cloud port, and the tagged network virtualization message is transmitted to the network virtualization unit of the container orchestration platform by using the sub-interface of the current service network, and is sent to the container in the containerized application bare metal by using the network virtualization unit.

[0085] In this embodiment, if the message is sent to the K8s node of the containerized application bare metal, the cloud platform will create a VLAN sub-interface 100 of the business network PF when issuing the bare metal. The traffic will pass through the switch's Trunk VLAN to release the message of VLAN 100 and then pass through the business network PF to enter the business network PF sub-interface to achieve traffic interoperability. If it is to enter the K8s container POD, the traffic will enter the network virtualization module after entering the business network PF, and then send the traffic to the corresponding pod, thereby achieving traffic interoperability. From the perspective of the realization of interoperability under the unified VPC, for the bare metal used to deploy the K8s container platform, when the cloud platform issues the bare metal, the switch port directly connected to the bare metal needs to be automatically switched to Trunk mode, and Trunk all (allowing the switch port to transmit data from all VLANs (virtual LANs). This configuration is usually used for connections between switches so that data from different VLANs can be transmitted between these switches) configuration. When configuring the bare metal network, you need to configure a sub-interface for the bare metal network card that connects the bare metal to the business network, and configure the VLAN to which the bare metal belongs to the bare metal network card through the sub-interface. After completing the above operations, you can pull up the K8s container platform and the network virtualization module through the script to achieve interoperability of the K8s container network.

[0086] It should be further explained that in order to reduce the mutual impact between various services, after obtaining the virtual private cloud subnet information and interconnecting the networks of the virtual machines, bare metal, and containerized application bare metal configured with port mode based on the virtual private cloud subnet information, it can also include: configuring the service network address of the containerized application bare metal on the target sub-interface; wherein the network address and network configuration included in the target sub-interface are different from the network addresses and network configurations of other sub-interfaces to achieve logical isolation between different services. In this embodiment, during the process of issuing bare metal on the cloud platform, the bare metal service network address needs to fall on the sub-interface of the bare metal service network card for isolation of the service network.

[0087] It should be further explained that after obtaining the virtual private cloud subnet information and interconnecting the networks of the virtual machines, bare metal, and containerized application bare metal configured with the port mode based on the virtual private cloud subnet information, it can also include: using the network connectivity test method to test whether the virtual machines of the cloud infrastructure platform and the containerized application containers in the containerized application bare metal receive the data packets sent by each other; if the virtual machines of the cloud infrastructure platform and the containerized application containers in the containerized application bare metal can receive the data packets sent by each other, it is determined that the cloud infrastructure platform and the containerized application are successfully interconnected; if the virtual machines of the cloud infrastructure platform and the containerized application containers in the containerized application bare metal cannot receive the data packets sent by each other, it is determined that the cloud infrastructure platform and the containerized application have failed to interconnect. This embodiment will detect whether the interconnection is based on the heartbeat to ensure that the data packets can be sent normally.

[0088] In order to improve the accuracy of interconnection detection, the routing information, firewall settings, VPC network configuration and network monitoring tools can be used to determine whether the network is interconnected; among them, use commands to obtain virtual machines, bare metal, containerized application bare metal routing information, check whether there are routing entries pointing to each other's network, if so, it means that the network between the two is interconnected; check firewall settings to ensure that the firewall rules between Openstack and Kubernetes do not block communication between each other, and ensure that relevant ports and IP addresses are allowed to pass; determine that virtual machines, bare metal, and containerized application bare metal are all in the same VPC network, and determine that the VPC ID, subnet range, and routing rules are consistent; use network monitoring tools to capture and analyze network traffic between virtual machines, bare metal, and containerized application bare metal to determine whether the communication between them is normal and whether there is a network failure. This embodiment uses multiple strategies when determining network interconnection between virtual machines, bare metal, and containerized application bare metal, thereby improving the accuracy of determining interconnection.

[0089] For easier understanding, please refer to Figure 3 , Figure 3 A schematic diagram of the interconnection between a virtual machine, bare metal, and containerized application bare metal provided in an embodiment of the present invention, from Figure 3 It can be seen that the virtual machines of the cloud infrastructure platform, the bare metal of the cloud infrastructure platform, and the cloud infrastructure platform with bare metal containerized applications share a VPC network. The port modes corresponding to the virtual machines, bare metal, and bare metal containerized applications are TRUNK VLAN, Access VLAN, and TRUNK VLAN, respectively.

[0090] A network deployment method provided by an embodiment of the present invention may include: S101, obtaining virtual machines and bare metals of a cloud infrastructure platform, and containerized application bare metals of a container orchestration platform; wherein the bare metal is a physical server without an operating system configured, and the containerized application bare metal is a bare metal in which a container orchestration platform is deployed in the bare metal through a cloud platform; S102, setting the switch port mode of the virtual machine to a multi-virtual LAN port mode, setting the switch port mode of the bare metal to a single virtual LAN port mode, and setting the port mode of the containerized application bare metal to a multi-virtual LAN port mode; S103, obtaining virtual private cloud subnet information, and interconnecting the networks of the virtual machines, bare metals, and containerized application bare metals that have been configured with port modes based on the virtual private cloud subnet information. Compared with the current situation where cloud infrastructure platforms and containerized applications cannot be interconnected and cannot directly send data packets, the present invention obtains the bare metal of the containerized application on which the container orchestration platform has been deployed, and configures the ports of the bare metal of the containerized application and the virtual machines and bare metal of the cloud infrastructure platform, so that the virtual machines and bare metal of the cloud infrastructure platform can be interconnected with the bare metal of the containerized application of the container orchestration platform.

[0091] It is understandable that Openstack and Kubernetes are the current mainstream cloud application management solutions, which are applied to the management of virtual machines, bare metal and containers respectively. Usually, there are both Openstack and Kubernetes in the cloud platform. The virtual machines and bare metal in the cloud platform are based on the VPC network of Openstack. The Openstack VPC network has rich functions and users have been using it for a long time. Consider connecting Kubernetes to the VPC network of Openstack to realize that the virtual machines, bare metal under the cloud platform, and the K8s containers deployed on the bare metal issued on the cloud platform can share the same Openstack VPC network, achieve intercommunication, and improve the competitiveness of cloud platform products.

[0092] The following is an introduction to a network deployment device provided in an embodiment of the present invention. The network deployment device described below and the network deployment method described above can be referenced to each other.

[0093] Figure 4 A schematic diagram of the structure of a network deployment device provided by an embodiment of the present invention may include:

[0094] The cloud platform service acquisition module 100 is used to acquire virtual machines and bare metal of the cloud infrastructure platform, and containerized application bare metal of the container orchestration platform; wherein the bare metal is a physical server without an operating system configured, and the containerized application bare metal is a bare metal in which the container orchestration platform is deployed in the bare metal through the cloud platform;

[0095] A port mode determination module 200, configured to set the switch port mode of the virtual machine to a multi-virtual LAN port mode, set the switch port mode of the bare metal to a single virtual LAN port mode, and set the port mode of the containerized application bare metal to a multi-virtual LAN port mode;

[0096] The network interconnection module 300 is used to obtain virtual private cloud subnet information, and interconnect the networks of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode based on the virtual private cloud subnet information.

[0097] Further, based on the above embodiment, the above network interconnection module 300 may include:

[0098] a network virtualization message determining unit, configured to, when determining that the virtual private cloud subnet information is a set virtual private cloud port, determine to add a label of the set virtual private cloud port to the network virtualization message to obtain a labeled network virtualization message;

[0099] A first port setting unit is configured to, when determining that the tagged network virtualization message is sent to the virtual machine of the cloud infrastructure platform, change the switch port corresponding to the virtual machine to be consistent with the set virtual private cloud port based on the tagged network virtualization message;

[0100] A second port setting unit is used for, when it is determined that the tagged network virtualization message is sent to the bare metal of the cloud infrastructure platform, based on the tagged network virtualization message, changing the switch port corresponding to the bare metal to be consistent with the set virtual private cloud port, and when the tagged network virtualization message passes through the switch port corresponding to the bare metal, automatically removing the label and entering the bare metal;

[0101] The third port setting unit is used to, when determining that the tagged network virtualization message is sent to the containerized application bare metal, determine to set the sub-interface of the service network of the containerized application bare metal to be consistent with the set virtual private cloud port, use the sub-interface of the current service network to transmit the tagged network virtualization message to the network virtualization unit of the container orchestration platform, and use the network virtualization unit to send it to the container in the containerized application bare metal.

[0102] Further, based on any of the above embodiments, the above network deployment device may further include:

[0103] A set connection network determination module is used to physically connect the business network and management network of the cloud platform to the switch, and to establish a set connection network connection between the cloud platform and the bare metal;

[0104] A containerized application image deployment module is used to determine the service subnet information of the containerized application image and the cloud infrastructure platform, and based on the service subnet information and the memory file system of the cloud infrastructure platform, write the containerized application image to the bare metal, and map it to the corresponding hard disk to obtain the containerized application bare metal;

[0105] The startup mode determination module is used to set the containerized application bare metal to start from the hard disk based on the set connection network.

[0106] Further, based on the above embodiment, the containerized application image deployment module may include:

[0107] A bare metal identifiable network information determination unit, configured to generate bare metal identifiable network information based on the business subnet information of the cloud infrastructure platform using a bare metal management component in the cloud platform;

[0108] A bare metal power-on unit, used to set the startup mode of the current bare metal node to remote startup through the set connection network, and restart and power on the current bare metal;

[0109] A memory file system power-on unit, configured to obtain the memory file system from the bare metal management component based on the bare metal started remotely by using a switch, and to power on the memory file system, so as to mount the bare metal started remotely to the physical node where the bare metal management component is located;

[0110] Using the mounted bare metal management component, the containerized application image and the network information recognizable by the bare metal are written to the bare metal, and mapped to the hard disk of the node where the mounted bare metal management component is located, to obtain the initial containerized application bare metal;

[0111] A hard disk startup setting unit, configured to use the bare metal management component to set the initial containerized application bare metal to start from the hard disk through the set network connection, and to restart and power on the initial containerized application bare metal;

[0112] A configuration unit is used to use a port configuration component to perform configuration based on the business subnet information, and automatically execute a build script to build the initial containerized application bare metal to a cloud infrastructure platform, connect the initial containerized application bare metal to a virtual private cloud network, and obtain the containerized application bare metal.

[0113] Further, based on the above embodiments, the service subnet information is one or more combinations of the attribute requirements of the sub-interface, the virtual LAN to which the sub-interface belongs, the physical interface to which the sub-interface belongs, the actual physical port information, the network address of the sub-interface, the mask of the sub-interface, and the routing information of the sub-interface.

[0114] Further, based on any of the above embodiments, the above network deployment device may further include:

[0115] A business isolation module is used to configure the business network address of the containerized application bare metal on the target sub-interface; wherein the network address and network configuration included in the target sub-interface are different from the network addresses and network configurations of other sub-interfaces to achieve logical isolation between different businesses.

[0116] Further, based on any of the above embodiments, the above network deployment device may further include:

[0117] A test module, used to test whether the virtual machine of the cloud infrastructure platform and the containerized application container in the containerized application bare metal receive data packets sent by the other party by using a network connectivity test method;

[0118] The interconnection success determination module is used to determine that the cloud infrastructure platform and the containerized application are successfully interconnected if the virtual machine of the cloud infrastructure platform and the containerized application container in the containerized application bare metal can receive data packets sent by each other;

[0119] The interconnection failure determination module is used to determine that the interconnection between the cloud infrastructure platform and the containerized application has failed if the virtual machine of the cloud infrastructure platform and the containerized application container in the containerized application bare metal cannot receive data packets sent by each other.

[0120] It should be noted that the order of the modules and units in the above network deployment device can be changed without affecting the logic.

[0121] Figure 4 The description of the features in the corresponding embodiments can be found in Figure 4 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.

[0122] The network deployment device provided by the embodiment of the present invention may include: a cloud platform service acquisition module 100, which is used to acquire virtual machines and bare metals of a cloud infrastructure platform, and containerized application bare metals of a container orchestration platform; wherein the bare metal is a physical server without an operating system configured, and the containerized application bare metal is a bare metal in which a container orchestration platform is deployed in the bare metal through a cloud platform; a port mode determination module 200, which is used to set the switch port mode of the virtual machine to a multi-virtual LAN port mode, set the switch port mode of the bare metal to a single virtual LAN port mode, and set the port mode of the containerized application bare metal to a multi-virtual LAN port mode; a network interconnection module 300, which is used to acquire virtual private cloud subnet information, and interconnect the networks of the virtual machine, the bare metal, and the containerized application bare metal that have been configured with port modes based on the virtual private cloud subnet information. Compared with the current situation where cloud infrastructure platforms and containerized applications cannot be interconnected and cannot directly send data packets, the present invention obtains the bare metal of the containerized application on which the container orchestration platform has been deployed, and configures the ports of the bare metal of the containerized application and the virtual machines and bare metal of the cloud infrastructure platform, so that the virtual machines and bare metal of the cloud infrastructure platform can be interconnected with the bare metal of the containerized application of the container orchestration platform.

[0123] A network deployment device provided in an embodiment of the present invention is introduced below. The network deployment device described below and the network deployment method described above can refer to each other.

[0124] Figure 5 A schematic diagram of a network deployment device provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the network deployment device includes: a memory 60 for storing computer programs;

[0125] The processor 61 is used to implement the steps of the network deployment method in the above embodiment when executing the computer program.

[0126] The network deployment device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0127] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0128] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein the computer program can implement the relevant steps of the network deployment method disclosed in any of the aforementioned embodiments after being loaded and executed by the processor 61. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. Data 603 may include but is not limited to network deployment data, etc.

[0129] In some embodiments, the network deployment device may also include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .

[0130] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the network deployment device, and may include more or fewer components than shown in the figure.

[0131] It is understandable that if the network deployment method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, disk or optical disk, etc. Various media that can store program codes.

[0132] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned network deployment method are implemented.

[0133] Based on this, an embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned network deployment method when executed by a processor.

[0134] The above is a detailed introduction to a network deployment method provided by an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0135] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0136] The above is a detailed introduction to a network deployment method, device, equipment and computer-readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A network deployment method, characterized in that: include: Obtain virtual machines and bare metals of a cloud infrastructure platform, and containerized application bare metals of a container orchestration platform; wherein the bare metals are physical servers that are not configured with an operating system, and the containerized application bare metals are bare metals in which a container orchestration platform is deployed through a cloud platform; Setting the switch port mode of the virtual machine to a multi-virtual LAN port mode, setting the switch port mode of the bare metal to a single virtual LAN port mode, and setting the port mode of the containerized application bare metal to a multi-virtual LAN port mode; The virtual private cloud subnet information is obtained, and based on the virtual private cloud subnet information, the network of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode are interconnected.

2. The network deployment method according to claim 1, characterized in that: The obtaining of virtual private cloud subnet information, and interconnecting the network of the virtual machine configured with the port mode, the bare metal, and the containerized application bare metal based on the virtual private cloud subnet information, includes: When it is determined that the virtual private cloud subnet information is a set virtual private cloud port, it is determined to add a label of the set virtual private cloud port to the network virtualization message to obtain a labeled network virtualization message; When it is determined that the tagged network virtualization message is sent to the virtual machine of the cloud infrastructure platform, based on the tagged network virtualization message, the switch port corresponding to the virtual machine is changed to be consistent with the set virtual private cloud port; When it is determined that the tagged network virtualization message is sent to the bare metal of the cloud infrastructure platform, based on the tagged network virtualization message, the switch port corresponding to the bare metal is changed to be consistent with the set virtual private cloud port, and when the tagged network virtualization message passes through the switch port corresponding to the bare metal, the label is automatically removed and then enters the bare metal; When it is determined that the tagged network virtualization message is sent to the containerized application bare metal, it is determined that the sub-interface of the service network of the containerized application bare metal is set to be consistent with the set virtual private cloud port, and the tagged network virtualization message is transmitted to the network virtualization unit of the container orchestration platform using the sub-interface of the current service network, and is sent to the container in the containerized application bare metal using the network virtualization unit.

3. The network deployment method according to claim 1, characterized in that: Before obtaining the virtual machines and bare metal of the cloud infrastructure platform and the containerized application bare metal of the container orchestration platform, it also includes: Physically connect the cloud platform's business network and management network to the switch, and establish a network connection between the cloud platform and bare metal; Determine the service subnet information of the containerized application image and the cloud infrastructure platform, and based on the service subnet information and the memory file system of the cloud infrastructure platform, write the containerized application image to the bare metal, and map it to the corresponding hard disk to obtain the containerized application bare metal; The containerized application bare metal is started from the hard disk based on the set connection network setting.

4. The network deployment method according to claim 3, characterized in that: The determining of the service subnet information of the containerized application image and the cloud infrastructure platform, and based on the service subnet information and the memory file system of the cloud infrastructure platform, writing the containerized application image to the bare metal, and mapping it to the corresponding hard disk to obtain the containerized application bare metal, includes: Using a bare metal management component in the cloud platform to generate bare metal identifiable network information based on the business subnet information of the cloud infrastructure platform; By setting the connection network, the startup mode of the current bare metal node is set to remote startup, and the current bare metal node is restarted and powered on; The bare metal started remotely utilizes a switch to obtain the memory file system from the bare metal management component, and powers on the memory file system to mount the bare metal started remotely to the physical node where the bare metal management component is located; Using the mounted bare metal management component, the containerized application image and the network information recognizable by the bare metal are written to the bare metal, and mapped to the hard disk of the node where the mounted bare metal management component is located, to obtain the initial containerized application bare metal; Using the bare metal management component to set the initial containerized application bare metal to start from the hard disk through the set network connection, and restarting and powering on the initial containerized application bare metal; The port configuration component is used to perform configuration based on the business subnet information, and the construction script is automatically executed to build the initial containerized application bare metal to the cloud infrastructure platform, and the initial containerized application bare metal is connected to the virtual private cloud network to obtain the containerized application bare metal.

5. The network deployment method according to claim 3, characterized in that: The service subnet information is one or more combinations of the attribute requirements of the subinterface, the virtual local area network to which the subinterface belongs, the physical interface to which the subinterface belongs, the actual physical port information, the network address of the subinterface, the mask of the subinterface, and the routing information of the subinterface.

6. The network deployment method according to claim 1, characterized in that: After obtaining the virtual private cloud subnet information and interconnecting the network of the virtual machine configured with the port mode, the bare metal, and the containerized application bare metal based on the virtual private cloud subnet information, the method further includes: The service network address of the containerized bare metal application is configured on the target sub-interface; wherein the network address and network configuration included in the target sub-interface are different from the network addresses and network configurations of other sub-interfaces to achieve logical isolation between different services.

7. The network deployment method according to claim 1, characterized in that: After obtaining the virtual private cloud subnet information and interconnecting the network of the virtual machine configured with the port mode, the bare metal, and the containerized application bare metal based on the virtual private cloud subnet information, the method further includes: Using a network connectivity test method, testing whether a virtual machine of a cloud infrastructure platform and a containerized application container in the containerized application bare metal have received data packets sent by the other party; If the virtual machine of the cloud infrastructure platform and the containerized application container in the containerized application bare metal can receive data packets sent by each other, it is determined that the cloud infrastructure platform and the containerized application are interconnected successfully; If the virtual machine of the cloud infrastructure platform and the containerized application container in the containerized application bare metal cannot receive data packets sent by each other, it is determined that the interconnection between the cloud infrastructure platform and the containerized application has failed.

8. A network deployment device, characterized in that: include: A cloud platform service acquisition module, used to acquire virtual machines and bare metal of a cloud infrastructure platform, and containerized application bare metal of a container orchestration platform; wherein the bare metal is a physical server without an operating system configured, and the containerized application bare metal is a bare metal in which a container orchestration platform is deployed through a cloud platform; A port mode determination module, configured to set the switch port mode of the virtual machine to a multi-virtual LAN port mode, set the switch port mode of the bare metal to a single virtual LAN port mode, and set the port mode of the containerized application bare metal to a multi-virtual LAN port mode; The network interconnection module is used to obtain the virtual private cloud subnet information, and interconnect the networks of the virtual machine, the bare metal, and the containerized application bare metal configured with the port mode based on the virtual private cloud subnet information.

9. A network deployment device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the network deployment method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network deployment method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Bare metal server network system and implementation method thereof

    CN111585917A

  • Method and device for interconnecting bare metal server and virtualized network

    CN114024799A

  • Multi-tenant communication isolation method and hybrid networking method

    CN114640554A

  • Bare metal tenant isolation method, device, equipment and medium

    CN116708196A

  • Multiple connectivity modes for containerized workloads in a multi-tenant network

    US20240314104A1

Cited By

  • A bare metal server instance management method, system, storage medium and program product

    CN122661302A