Font Size: a A A

Design And Implementation Of A Continuous Integration And Deployment System Based On Kubernetes

Posted on:2021-03-12Degree:MasterType:Thesis
Country:ChinaCandidate:M D LiangFull Text:PDF
GTID:2518306104495994Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of the Internet and the increasingly high requirements of enterprise operation and maintenance project management,there are many shortcomings in the traditional development and deployment mode.For example,the resource utilization is low,it is difficult to migrate,it is strongly dependent on hardware,it cannot be integrated continuously,it is difficult to deploy,and the configuration environment is complex.This traditional development mode can not meet the needs of users and enterprises,and a large number of enterprises began to seek new development and deployment mode.In order to solve the above problems,a continuous integration and deployment system is designed and implemented,using a new operation management mode to replace the traditional deployment mode.First of all,the system is divided into five functions: home page function,overview function,setting function,building function,deployment function,and each function is analyzed in detail through using case diagram.Then on the basis of requirement analysis,the whole system is designed,including system architecture design,system specific function design,system database design.The whole system can be divided into the interaction layer for users to operate and view information,the business layer for specific functions and the data layer.The idea of microservice architecture is adopted in the business layer,which can be divided into different services according to the functional modules.The function of sab service is to save the data in the interaction layer and issue the deployment command.The function of med service is to complete the construction and get the deployable image.The function of groo service is to receive the deployment command of sab service and perform the specific operation.On the basis of requirement analysis and design,the function is realized from code level.In the specific implementation,gitlab CI tool is used to realize the function of continuous delivery and integration.Each time the operation such as git push or merge is executed,the code will be automatically integrated to the specified branch.Docker technology is used to pull the image and generate deployable image during construction.Then,harbor image warehouse is used to manage and build the generated image for deployment.In the deployment process,Kubernetes API is directly called for implementation.At the end of this paper,we design test cases and test process to test each function.Through the analysis of test results,we can determine that the system can be used normally,The system realizes the construction and deployment of UI interface,avoids the configuration of complex environment and other problems,reduces the cost of enterprise development and operation and maintenance,and greatly improves the development efficiency.
Keywords/Search Tags:Continuous integration, Docker, Kubernetes, Deploy
PDF Full Text Request
Related items