CN116233221A - Method, device, equipment and medium for deploying domain name system cloud resolution service - Google Patents

Method, device, equipment and medium for deploying domain name system cloud resolution service Download PDF

Info

Publication number
CN116233221A
CN116233221A CN202310109959.8A CN202310109959A CN116233221A CN 116233221 A CN116233221 A CN 116233221A CN 202310109959 A CN202310109959 A CN 202310109959A CN 116233221 A CN116233221 A CN 116233221A
Authority
CN
China
Prior art keywords
server
domain name
name system
cluster
service
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.)
Pending
Application number
CN202310109959.8A
Other languages
Chinese (zh)
Inventor
武新超
李红卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202310109959.8A priority Critical patent/CN116233221A/en
Publication of CN116233221A publication Critical patent/CN116233221A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for deploying domain name system cloud resolution service, which are applied to a cloud platform and relate to the technical field of computers, and the method comprises the following steps: if the domain name system server to be used by the cloud platform is a cluster external server, filling a target pool based on the cluster external server; if the server is the cluster internal server, starting any cluster internal server with a preassigned deployment node as a target server, and filling a target pool based on the target server; performing domain name system cloud analysis service by utilizing a target server or a cluster external server based on a container mirror image acquired in advance; the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a basic mirror image, supports domain name system cloud resolution service and supports domain name system cloud resolution service by utilizing a cluster internal server and a cluster external server. The cloud analysis service can be performed by using a server inside the cloud platform and also by using a server outside the cloud platform.

Description

Method, device, equipment and medium for deploying domain name system cloud resolution service
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for deploying a domain name system cloud resolution service.
Background
OpenStack is an open-source cloud computing management platform project and is a combination of a series of software open-source projects. Is developed and launched by the NASA (national aerospace agency) and Rackspace in concert, authorized with the Apache license (a free software license issued by the Apache software foundation). OpenStack provides scalable and resilient cloud computing services for private and public clouds. The project aims to provide a cloud computing management platform which is simple to implement, can be expanded in a large scale, is rich and has unified standards. The OpenStack project is an open source project that aims to provide software for the construction and management of public and private clouds, and several major components are combined to complete specific works.
Kubernetes (k 8 s) is a Google open-source container cluster management system (Google inside: borg). Is a brand new distributed architecture lead scheme based on container technology. Based on the Docker technology, a series of complete functions such as deployment operation, resource scheduling, service discovery, dynamic expansion and contraction are provided for containerized application, and convenience of large-scale container cluster management is improved.
Currently, the problems of the OpenStack cloud platform DNS (Domain Name System ) cloud resolution deployment function exist: at present, the function of the DNS cloud resolution service of the openstack cloud platform based on k8s only supports the DNS servers (domain name system servers) in the butting cluster (the cluster is a cluster of domain name system servers in the cloud platform), and the DNS servers outside the cluster (namely outside the cloud platform) cannot be automatically in butting deployment, namely, the DNS servers outside the cluster cannot be used for DNS cloud resolution, so that difficulties are brought to the deployment of DNS cloud resolution service and the use of the DNS cloud resolution service function on site.
In summary, how to implement a domain name system cloud resolution service by using a server inside the cloud platform and also by using a server outside the cloud platform is a current urgent problem to be solved.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, apparatus, device, and medium for deploying a domain name system cloud resolution service, which can use an internal server of a cloud platform and can also use an external server to perform the domain name system cloud resolution service. The specific scheme is as follows:
in a first aspect, the application discloses a deployment method of a domain name system cloud resolution service, which is applied to a cloud platform and comprises the following steps:
judging that a domain name system server to be used by the cloud platform is a cluster internal server or a cluster external server; the cluster is a cluster of domain name system servers in the cloud platform;
if the cloud service is the cluster external server, filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server so that the cluster external server has the function of performing the domain name system cloud analysis service;
if the server is the cluster internal server, starting any cluster internal server with a preset deployment node as a target server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service;
based on a container mirror image obtained in advance, the domain name system cloud analysis service is carried out by utilizing the target server or the cluster external server so as to complete the deployment of the domain name system cloud analysis service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server.
Optionally, the determining that the domain name system server to be used by the cloud platform is a cluster internal server or a cluster external server includes:
creating an endpoint which corresponds to the domain name system cloud analysis service and is used for communicating with a message queue and a database, starting a first service, a second service, a third service and a fourth service of the domain name system cloud analysis, and judging that a domain name system server which is needed to be used by the cloud platform is a cluster internal server or a cluster external server.
Optionally, before the creating the endpoint for communicating with the message queue and the database, which corresponds to the domain name system cloud resolution service, the method further includes:
judging whether the domain name system cloud analysis service needs to be started or not, and starting or closing a deployment process according to a switch which is added in the global control file in advance and used for deploying the domain name system cloud analysis service or not based on a judgment result.
Optionally, the performing, based on the pre-acquired container image and using the target server or the external server of the cluster, the domain name system cloud resolution service includes:
starting a fifth service of the domain name system cloud resolution service;
and carrying out the domain name system cloud resolution service by utilizing the target server or the cluster external server based on the container mirror image which is obtained in advance and stored in the private warehouse of the cloud platform.
Optionally, before the first service, the second service, the third service, and the fourth service for starting the domain name system cloud resolution, the method further includes:
the first service, the second service, the third service, the fourth service and the fifth service of the domain name system cloud resolution and the deployment nodes of a plurality of servers inside the cluster for performing the domain name system cloud resolution are respectively specified through an inventory file in advance.
Optionally, if the server is the external cluster server, the filling the target pool corresponding to the domain name system cloud resolution service based on the external cluster server, so that the external cluster server has a function of performing the domain name system cloud resolution service, includes:
if the cluster external server is the cluster external server, configuring the state of the cluster internal server as a disabled state, mapping a first configuration file of the cluster external server into a first ConfigMap, and then mounting the first ConfigMap to fill a target pool corresponding to the domain name system cloud analysis service, so that the cluster external server has the function of performing the domain name system cloud analysis service.
Optionally, if the server is the intra-cluster server, the intra-cluster server of any pre-designated deployment node is started as a target server, and the target pool is filled based on the target server, so that the target server has a function of performing the domain name system cloud resolution service, including:
if the server is the cluster internal server, configuring the state of the cluster internal server as a use state, starting any cluster internal server with a preassigned deployment node as a target server, mapping a second configuration file of the target server into a second ConfigMap, and mounting the second ConfigMap to fill the target pool, so that the target server has the function of performing the domain name system cloud analysis service.
In a second aspect, the application discloses a deployment device of a domain name system cloud resolution service, which is applied to a cloud platform and comprises:
the judging module is used for judging that the domain name system server which is needed to be used by the cloud platform is a cluster internal server or a cluster external server; the cluster is a cluster of domain name system servers in the cloud platform;
the first filling module is used for filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server if the cluster external server is the cluster external server, so that the cluster external server has the function of performing the domain name system cloud analysis service;
the second filling module is used for starting any cluster internal server with a preset deployment node as a target server if the cluster internal server is the cluster internal server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service;
the resolution service module is used for carrying out the domain name system cloud resolution service by utilizing the target server or the cluster external server based on the container mirror image acquired in advance so as to complete the deployment of the domain name system cloud resolution service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server.
In a third aspect, the present application discloses an electronic device comprising a processor and a memory; the method for deploying the domain name system cloud resolution service is realized when the processor executes the computer program stored in the memory.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; the method for deploying domain name system cloud resolution service is realized when the computer program is executed by a processor.
As can be seen, the domain name system server to be used by the cloud platform is judged to be a cluster internal server or a cluster external server by the application; the cluster is a cluster of domain name system servers in the cloud platform; if the cloud service is the cluster external server, filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server so that the cluster external server has the function of performing the domain name system cloud analysis service; if the server is the cluster internal server, starting any cluster internal server with a preset deployment node as a target server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service; based on a container mirror image obtained in advance, the domain name system cloud analysis service is carried out by utilizing the target server or the cluster external server so as to complete the deployment of the domain name system cloud analysis service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server. Therefore, the container mirror supports the domain name system cloud analysis service by using the cluster internal server and the cluster external server, so that the used domain name system server can be judged as the cluster internal server or the cluster external server, the target server or the cluster external server has the function of performing the domain name system cloud analysis service, the cluster internal server (the server in the cloud platform) can be used for performing the domain name system cloud analysis service, and the cluster external server (the server outside the cloud platform) can also be used for performing the domain name system cloud analysis service.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a deployment method of a domain name system cloud resolution service provided in the present application;
fig. 2 is a flowchart of a method for deploying a specific domain name system cloud resolution service provided in the present application;
fig. 3 is a schematic diagram of a preparation work of a domain name system cloud resolution service deployment provided in the present application;
fig. 4 is a schematic deployment flow chart of a cloud resolution service of a domain name system provided in the present application;
fig. 5 is a schematic structural diagram of a deployment device of a domain name system cloud resolution service provided in the present application;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Currently, problems exist in the OpenStack cloud platform DNS cloud resolution deployment function: at present, the function of the DNS cloud resolution service of the openstack cloud platform based on k8s only supports the DNS servers inside the docking cluster (the cluster is a cluster of domain name system servers inside the cloud platform), and the DNS servers outside the docking cluster (namely outside the cloud platform) cannot be automatically docked and deployed, namely, the DNS servers outside the docking cluster cannot be used for DNS cloud resolution, so that difficulties are brought to the deployment of on-site DNS cloud resolution service and the use of the DNS cloud resolution service function.
In order to overcome the problems, the application provides a deployment scheme of domain name system cloud resolution service, which can utilize a server inside a cloud platform and also can utilize a server outside the cloud platform to perform domain name system cloud resolution service.
Referring to fig. 1, an embodiment of the present application discloses a deployment method of a domain name system cloud resolution service, applied to a cloud platform, where the method includes:
step S11: judging that a domain name system server to be used by the cloud platform is a cluster internal server or a cluster external server; the cluster is a cluster of domain name system servers inside the cloud platform.
In this embodiment of the present application, the internal server of the cluster is a domain name system server located in a cluster of domain name system servers inside the cloud platform, and the external server of the cluster is a domain name system server outside the cloud platform.
Step S12: and if the cloud service is the cluster external server, filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server so that the cluster external server has the function of performing the domain name system cloud analysis service.
In this embodiment of the present application, if the server is the external cluster server, the filling, based on the external cluster server, of the target pool corresponding to the domain name system cloud resolution service, so that the external cluster server has a function of performing the domain name system cloud resolution service includes: if the cluster external server is the cluster external server, configuring the state of the cluster internal server as a disabled state, mapping a first configuration file of the cluster external server into a first ConfigMap, and then mounting the first ConfigMap to fill a target pool corresponding to the domain name system cloud analysis service, so that the cluster external server has the function of performing the domain name system cloud analysis service. It should be noted that the ConfigMap may decouple the environment variable configuration information from the container image, facilitating modification of the application configuration.
It should be noted that, specifically, if the domain name system server that the cloud platform needs to use is a cluster external server, the internal domain name system server state is configured to be no (disabled state), the rndc.key file (first configuration file) of the external domain name system server (cluster external server) is mapped to be configmap, the worker-init job is started and the external dns rndc.key configmap is mounted to fill the design pool (target pool).
Step S13: and if the server is the cluster internal server, starting any cluster internal server with a preassigned deployment node as a target server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service.
In this embodiment of the present application, if the server is the intra-cluster server, starting any intra-cluster server with a pre-designated deployment node as a target server, and filling the target pool based on the target server, so that the target server has a function of performing the domain name system cloud resolution service, including:
if the server is the cluster internal server, configuring the state of the cluster internal server as a use state, starting any cluster internal server with a preassigned deployment node as a target server, mapping a second configuration file of the target server into a second ConfigMap, and mounting the second ConfigMap to fill the target pool, so that the target server has the function of performing the domain name system cloud analysis service.
It should be noted that, specifically, if the domain name system server that the cloud platform needs to use is a cluster internal server, configuring the internal domain name system server state as yes (usage state), starting a DNS server pod to select any internal DNS server of a pre-designated deployment node as a target server, mapping a rndc.key file (second configuration file) of the internal domain name system server (cluster internal server) as a configmap, starting a worker-init job, and mounting an external DNS rndc.key configmap to fill a design pool (target pool).
Step S14: based on a container mirror image obtained in advance, the domain name system cloud analysis service is carried out by utilizing the target server or the cluster external server so as to complete the deployment of the domain name system cloud analysis service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server.
In the embodiment of the application, the central 8.2 is selected as the base image of the container image corresponding to the design and the DNS server, and the domain name system toolkit includes, but is not limited to, bind9 and PowerDNS4 installation packages. It should be noted that, when the design function code is integrated, the domain name system cloud analysis service is supported, and when the domain name system tool kit is integrated, the domain name system cloud analysis service is supported by the cluster internal server and the cluster external server.
It should be noted that the steps from step S11 to step S14 in the present application are completed by running object code, where the object code is a code obtained by modifying the design related char deployment code in the openstack based on k8S in advance. Note that hellm is a client tool under a command line. The method is mainly used for creating, packaging, publishing, and creating and managing the local and remote Chart warehouse of the Kubernetes application program Chart. Chart is the application packaging format of Helm. Chart consists of a series of files that describe the resources required when the Kubernetes deploys an application.
As can be seen, the domain name system server to be used by the cloud platform is judged to be a cluster internal server or a cluster external server by the application; the cluster is a cluster of domain name system servers in the cloud platform; if the cloud service is the cluster external server, filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server so that the cluster external server has the function of performing the domain name system cloud analysis service; if the server is the cluster internal server, starting any cluster internal server with a preset deployment node as a target server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service; based on a container mirror image obtained in advance, the domain name system cloud analysis service is carried out by utilizing the target server or the cluster external server so as to complete the deployment of the domain name system cloud analysis service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server. Therefore, the container mirror supports the domain name system cloud analysis service by using the cluster internal server and the cluster external server, so that the used domain name system server can be judged as the cluster internal server or the cluster external server, the target server or the cluster external server has the function of performing the domain name system cloud analysis service, the cluster internal server (the server in the cloud platform) can be used for performing the domain name system cloud analysis service, and the cluster external server (the server outside the cloud platform) can also be used for performing the domain name system cloud analysis service.
Referring to fig. 2, an embodiment of the present application discloses a specific deployment method of a domain name system cloud resolution service, which is applied to a cloud platform, and the method includes:
step S21: creating an endpoint which corresponds to the domain name system cloud analysis service and is used for communicating with a message queue and a database, starting a first service, a second service, a third service and a fourth service of the domain name system cloud analysis, and judging that a domain name system server which is needed to be used by the cloud platform is a cluster internal server or a cluster external server.
In this embodiment of the present application, the message queue is a rabitmq, the endpoint is an endpoint, and the first service, the second service, the third service, and the fourth service are respectively an api service (i.e. a call interface service), a central service, a product service, and an mdns service.
In this embodiment of the present application, before the creating the endpoint for communicating with the message queue and the database, which corresponds to the domain name system cloud resolution service, the method further includes: judging whether the domain name system cloud analysis service needs to be started or not, and starting or closing a deployment process according to a switch which is added in the global control file in advance and used for deploying the domain name system cloud analysis service or not based on a judgment result. It should be noted that by adding a control switch of the cloud resolution service to the deployment code, the flexibility of deployment is increased.
Step S22: and if the cloud service is the cluster external server, filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server so that the cluster external server has the function of performing the domain name system cloud analysis service.
For more specific processing in step S22, reference may be made to the corresponding content disclosed in the foregoing embodiment, and a detailed description is omitted here.
Step S23: and if the server is the cluster internal server, starting any cluster internal server with a preassigned deployment node as a target server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service.
For more specific processing in step S23, reference may be made to the corresponding content disclosed in the foregoing embodiment, and a detailed description is omitted herein.
Step S24: starting a fifth service of the domain name system cloud resolution service; based on a container mirror image which is obtained in advance and stored in a private warehouse of the cloud platform, and the domain name system cloud analysis service is carried out by utilizing the target server or the cluster external server so as to complete the deployment of the domain name system cloud analysis service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server.
In this embodiment of the present application, the fifth service is a workbench service, and the container image is pushed to a private repository of an openstack cloud platform after being obtained.
In this embodiment of the present application, before the starting the first service, the second service, the third service, and the fourth service of the domain name system cloud resolution, the method further includes: the first service, the second service, the third service, the fourth service and the fifth service of the domain name system cloud resolution and the deployment nodes of a plurality of servers inside the cluster for performing the domain name system cloud resolution are respectively specified through an inventory file in advance. It should be noted that these services can only be actually put into use if the deployment node is set.
Therefore, the container mirror supports the domain name system cloud analysis service by using the cluster internal server and the cluster external server, so that the used domain name system server can be judged as the cluster internal server or the cluster external server, the target server or the cluster external server has the function of performing the domain name system cloud analysis service, the cluster internal server (the server in the cloud platform) can be used for performing the domain name system cloud analysis service, and the cluster external server (the server outside the cloud platform) can also be used for performing the domain name system cloud analysis service.
Referring to fig. 3, a schematic diagram of a preparation work for deploying a domain name system cloud resolution service is shown, and step one: selecting the centos8.2 as a basic mirror image of the designed and DNS server container mirror images; step two: integrating design function codes, bind9 and PowerDNS4 installation packages in the basic mirror image to enable the mirror image to simultaneously support functions of DNS cloud analysis and DNS server; step three: pushing the mirror image to an openstack cloud platform private warehouse; step four: a switch for deploying the DNS cloud resolution service is added in the global control file; step five: a API, producer, central, worker, miniDNS service and a DNS server service deployment node with a cloud resolution function are specified through an inventory file; and finally, designing a start flow of the DNS cloud resolution service. Specifically, step three to be needed is the operation of mirror image, and from step four, the design related chart deployment code in the openstack based on k8s is modified, so that the DNS cloud analysis service supports the internal and external DNS servers of the butt-joint cloud platform, namely, the internal and external DNS servers of the cloud platform can perform the DNS cloud analysis service.
It should be noted that, the application selects the centos8.2 as a basic mirror image, integrates the design function code and BIND9 and PowerDNS4 installation packages in the basic mirror image, and ensures that one container mirror image can support the DNS cloud analysis and the DNS server functions at the same time.
Referring to fig. 4, a schematic deployment flow diagram of a domain name system cloud resolution service is shown, and step one: judging whether the cloud platform needs to start a DNS cloud analysis service or not; step two: creating an endpoint of a design module (which can be understood as a module corresponding to the DNS cloud resolution service) and is responsible for communicating with the rabkitmq and the database; step three: judging whether the DNS server in butt joint of the cloud platform is a server in the cluster or a server outside the cluster; step four: if the cluster is connected with an external DNS server, configuring the state of the internal DNS server as no, mapping the rndc.key file of the external DNS server as configmap, starting a worker-init job and mounting the external DNS rndc.key configmap, and filling a design pool; if the cluster is butted with the internal DNS server, configuring the state of the internal DNS server as yes, starting the DNS server pod as the internal DNS server, and starting a worker-init job to fill a design pool; step five: the worker pod, design (cloud resolution) is started to start the service.
In summary, the method selects the centos8.2 as the basic image, integrates the design function code and BIND9 and PowerDNS4 installation packages in the basic image, and ensures that one container image can support DNS cloud analysis and DNS server functions at the same time. By adding the control switch of the cloud analysis service in the deployment code, the flexibility of deployment is increased. And adding a design group in the index file, and designating the deployment node of each service of the design. In addition, in the process of starting the design service, an endpoint of the service is created, a connection between the endpoint and the database is established, the type of an actual DNS server is judged, the external DNS server is respectively connected or the internal DNS server is started and connected, and finally the design worker service is started to work. The DNS cloud analysis function is ensured to have the capability of interfacing an internal DNS server and an external DNS server in use.
It should be noted that a perfect cloud platform DNS cloud resolution service deployment method is realized. By integrating design and DNS toolkits in the container mirror, a mirror supporting both DNS cloud resolution and DNS server functions is constructed. In the deployment, the device can be selectively connected with an internal or external DNS server according to the actual condition of the site to fill a design pool. The deployment complexity of the cloud platform is greatly reduced, the delivery capacity of the cloud platform on site is improved, and the working complexity of implementation personnel is reduced.
Referring to fig. 5, an embodiment of the present application discloses a deployment device of a domain name system cloud resolution service, which is applied to a cloud platform and includes:
the judging module 11 is configured to judge that a domain name system server that the cloud platform needs to use is a cluster internal server or a cluster external server; the cluster is a cluster of domain name system servers in the cloud platform;
a first filling module 12, configured to, if the cluster external server is the cluster external server, fill, based on the cluster external server, a target pool corresponding to the domain name system cloud resolution service, so that the cluster external server has a function of performing the domain name system cloud resolution service;
a second filling module 13, configured to, if the server is the cluster internal server, start any one of the cluster internal servers with a pre-designated deployment node as a target server, and fill the target pool based on the target server, so that the target server has a function of performing the domain name system cloud resolution service;
the resolution service module 14 is configured to perform the domain name system cloud resolution service by using the target server or the external server of the cluster based on the container image acquired in advance, so as to complete deployment of the domain name system cloud resolution service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server.
The more specific working process of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
Therefore, the container mirror supports the domain name system cloud analysis service by using the cluster internal server and the cluster external server, so that the used domain name system server can be judged as the cluster internal server or the cluster external server, the target server or the cluster external server has the function of performing the domain name system cloud analysis service, the cluster internal server (the server in the cloud platform) can be used for performing the domain name system cloud analysis service, and the cluster external server (the server outside the cloud platform) can also be used for performing the domain name system cloud analysis service.
Further, the embodiment of the present application further provides an electronic device, and fig. 6 is a structural diagram of the electronic device 20 according to an exemplary embodiment, where the content of the drawing is not to be considered as any limitation on the scope of use of the present application.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, an input-output interface 24, a communication interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, where the computer program is loaded and executed by the processor 21 to implement the relevant steps of the deployment method of the domain name system cloud resolution service disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 24 is used for obtaining external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application needs, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the memory 22 may be a nonvolatile memory including a random access memory as a running memory and a storage purpose for an external memory, and the storage resources include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used to manage and control various hardware devices on the electronic device 20 and the computer program 222 on the source host, and the operating system 221 may be Windows, unix, linux or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the method of deploying a domain name system cloud resolution service performed by the electronic device 20 as disclosed in any of the previous embodiments.
In this embodiment, the input/output interface 24 may specifically include, but is not limited to, a USB interface, a hard disk read interface, a serial interface, a voice input interface, a fingerprint input interface, and the like.
Further, the embodiment of the application also discloses a computer readable storage medium for storing a computer program; the method for deploying domain name system cloud resolution service is realized when the computer program is executed by a processor.
For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
The computer readable storage medium as referred to herein includes random access Memory (Random Access Memory, RAM), memory, read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, magnetic or optical disk, or any other form of storage medium known in the art. The method for deploying the domain name system cloud resolution service is realized when the computer program is executed by a processor. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed by the embodiment, the description is simpler because the device corresponds to the deployment method of the domain name system cloud resolution service disclosed by the embodiment, and relevant parts only need to be described by referring to the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of an algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the medium for deploying the domain name system cloud resolution service provided by the invention are described in detail, and specific examples are applied to the description of the principle and the implementation mode of the invention, and the description of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. The deployment method of the domain name system cloud resolution service is characterized by being applied to a cloud platform and comprising the following steps of:
judging that a domain name system server to be used by the cloud platform is a cluster internal server or a cluster external server; the cluster is a cluster of domain name system servers in the cloud platform;
if the cloud service is the cluster external server, filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server so that the cluster external server has the function of performing the domain name system cloud analysis service;
if the server is the cluster internal server, starting any cluster internal server with a preset deployment node as a target server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service;
based on a container mirror image obtained in advance, the domain name system cloud analysis service is carried out by utilizing the target server or the cluster external server so as to complete the deployment of the domain name system cloud analysis service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server.
2. The method for deploying a domain name system cloud resolution service according to claim 1, wherein the determining that the domain name system server to be used by the cloud platform is an internal cluster server or an external cluster server comprises:
creating an endpoint which corresponds to the domain name system cloud analysis service and is used for communicating with a message queue and a database, starting a first service, a second service, a third service and a fourth service of the domain name system cloud analysis, and judging that a domain name system server which is needed to be used by the cloud platform is a cluster internal server or a cluster external server.
3. The method for deploying a domain name system cloud resolution service according to claim 2, wherein before creating an endpoint for communicating with a message queue and a database corresponding to the domain name system cloud resolution service, further comprises:
judging whether the domain name system cloud analysis service needs to be started or not, and starting or closing a deployment process according to a switch which is added in the global control file in advance and used for deploying the domain name system cloud analysis service or not based on a judgment result.
4. The method for deploying a domain name system cloud resolution service according to claim 2, wherein the performing the domain name system cloud resolution service based on the pre-acquired container image and using the target server or the cluster external server comprises:
starting a fifth service of the domain name system cloud resolution service;
and carrying out the domain name system cloud resolution service by utilizing the target server or the cluster external server based on the container mirror image which is obtained in advance and stored in the private warehouse of the cloud platform.
5. The method for deploying a domain name system cloud resolution service according to claim 4, wherein before the first service, the second service, the third service, and the fourth service for enabling the domain name system cloud resolution, further comprises:
the first service, the second service, the third service, the fourth service and the fifth service of the domain name system cloud resolution and the deployment nodes of a plurality of servers inside the cluster for performing the domain name system cloud resolution are respectively specified through an inventory file in advance.
6. The method for deploying a domain name system cloud resolution service according to any one of claims 1 to 5, wherein if the server is the external cluster server, filling a target pool corresponding to the domain name system cloud resolution service based on the external cluster server, so that the external cluster server has a function of performing the domain name system cloud resolution service, and the method comprises:
if the cluster external server is the cluster external server, configuring the state of the cluster internal server as a disabled state, mapping a first configuration file of the cluster external server into a first ConfigMap, and then mounting the first ConfigMap to fill a target pool corresponding to the domain name system cloud analysis service, so that the cluster external server has the function of performing the domain name system cloud analysis service.
7. The method for deploying a domain name system cloud resolution service according to any one of claims 1 to 5, wherein if the server is the intra-cluster server, starting the intra-cluster server of any one of the pre-designated deployment nodes as a target server, and filling the target pool based on the target server, so that the target server has a function of performing the domain name system cloud resolution service, comprising:
if the server is the cluster internal server, configuring the state of the cluster internal server as a use state, starting any cluster internal server with a preassigned deployment node as a target server, mapping a second configuration file of the target server into a second ConfigMap, and mounting the second ConfigMap to fill the target pool, so that the target server has the function of performing the domain name system cloud analysis service.
8. The utility model provides a deployment device of domain name system cloud resolution service, is characterized in that is applied to cloud platform, includes:
the judging module is used for judging that the domain name system server which is needed to be used by the cloud platform is a cluster internal server or a cluster external server; the cluster is a cluster of domain name system servers in the cloud platform;
the first filling module is used for filling a target pool corresponding to the domain name system cloud analysis service based on the cluster external server if the cluster external server is the cluster external server, so that the cluster external server has the function of performing the domain name system cloud analysis service;
the second filling module is used for starting any cluster internal server with a preset deployment node as a target server if the cluster internal server is the cluster internal server, and filling the target pool based on the target server so that the target server has the function of performing the domain name system cloud analysis service;
the resolution service module is used for carrying out the domain name system cloud resolution service by utilizing the target server or the cluster external server based on the container mirror image acquired in advance so as to complete the deployment of the domain name system cloud resolution service; and the container mirror image is a mirror image which is obtained by integrating a design function code and a domain name system toolkit in a selected basic mirror image, supports domain name system cloud analysis service and supports the domain name system cloud analysis service by utilizing the cluster internal server and the cluster external server.
9. An electronic device comprising a processor and a memory; the deployment method of the domain name system cloud resolution service according to any one of claims 1 to 7 is implemented when the processor executes the computer program stored in the memory.
10. A computer-readable storage medium storing a computer program; wherein the computer program, when executed by a processor, implements a method of deploying a domain name system cloud resolution service as claimed in any of claims 1 to 7.
CN202310109959.8A 2023-02-10 2023-02-10 Method, device, equipment and medium for deploying domain name system cloud resolution service Pending CN116233221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310109959.8A CN116233221A (en) 2023-02-10 2023-02-10 Method, device, equipment and medium for deploying domain name system cloud resolution service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310109959.8A CN116233221A (en) 2023-02-10 2023-02-10 Method, device, equipment and medium for deploying domain name system cloud resolution service

Publications (1)

Publication Number Publication Date
CN116233221A true CN116233221A (en) 2023-06-06

Family

ID=86583858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310109959.8A Pending CN116233221A (en) 2023-02-10 2023-02-10 Method, device, equipment and medium for deploying domain name system cloud resolution service

Country Status (1)

Country Link
CN (1) CN116233221A (en)

Similar Documents

Publication Publication Date Title
CN108809722B (en) Method, device and storage medium for deploying Kubernetes cluster
RU2597511C2 (en) Creating maps of private spaces using sensors of mobile computing devices
CN103167041A (en) System and method for supporting cloud environment application cluster automation deployment
US10164828B2 (en) Geospatial based management of configuration profiles
CN107741852B (en) Service deployment method based on cluster software
CN101395582A (en) Method, system, and program product for deploying a platformdependent application in a grid environment
CN110502217B (en) ROS-based robot cloud platform design method
CN114365107A (en) Network-based media processing (NBMP) workflow management controlled by 5G real-time uplink streaming framework (plus)
CN104429048A (en) Object version management
CN114422602B (en) Micro-service calling method and device based on K8S cluster, electronic equipment and storage medium
CN115883512A (en) DNS domain name processing method, device, system, equipment and medium
US11212134B2 (en) Building automation system providing for integration of subsystems
CN118276848A (en) Function self-defining method, device, equipment and medium of low-code platform
CN114490073A (en) Electronic map operation and maintenance method, electronic map data using method and service system
CN102622224A (en) Method for achieving tree-like control piece with search function in Windchill system
CN114745757B (en) Cluster switching method, device, equipment and medium
CN116233221A (en) Method, device, equipment and medium for deploying domain name system cloud resolution service
CN115878860A (en) Menu generation method, device, server equipment and medium
CN112084247B (en) Method and device for expanding application program service
CN108809715A (en) A kind of method and device of deployment management platform
CN109408673B (en) Map management method and management platform
CN112148935A (en) Method and apparatus for NBMP function execution for multiple instances
CN110971665A (en) Management method, system, equipment and storage medium for interfacing multi-type storage
CN117112500B (en) Resource management method, device, equipment and storage medium
CN112910675A (en) Equipment management method, device and system

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