Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Kepler Cloud platform: how to configure gitlab and Jenkins

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

What is Kplcloud?

Kplcloud is a lightweight PaaS platform based on Kubernetes, which manages applications through a visual interface to reduce the accuracy of application containerization, thus reducing the time cost of application containerization.

Kplcloud has been running steadily for nearly two years in Yixin, Fortune and other teams. At present, the platform has run hundreds of applications and nearly 1000 containers in the production environment.

1.1 Quick launch Clone $mkdir-p $GOPATH/src/github.com/kplcloud$ cd $GOPATH/src/github.com/kplcloud$ git clone https://github.com/kplcloud/kplcloud.git$ cd kplcloud configuration file prepares to put the kubeconfig file connected to Kubernets into the project directory app.cfg file configuration is also placed in the project directory app.cfg configuration (see GitHub repository see configuration file) Docker startup $cd install/docker-compose$ docker-compose upmake startup $make run II, configure gitlab and Jenkins

The source code of the application is pulled from the git server to the jenkins server through jenkins to compile, so we need to give the jenkins service access to the git service.

The following is how to give jenkins access to gitlab and github configuration.

2.1 gitlab configure login Jenkins server to cd ~ / .ssh / find cat id_rsa.pub if not, execute the following command to generate: $ssh-keygen-o-t rsa-b 4096-C paste the content to your gitlab

2.2 configuration login Jenkins server on jenkins enter cd ~ / .ssh / find cat id_rsa if not, execute the following command to generate: $ssh-keygen-o-t rsa-b 4096-C enter http://{your jenkins server} / credentials/store/system/domain/_/

Click "add credentials"

Paste the privateKey into the privateKey block so that the jenkins server can access the gitlab service.

2.3 install maven

Java application construction needs to install the maven plug-in

Search for the maven plug-in, check to install it directly, and check to restart jenkins automatically after installation.

2.4 configure maven

Enter the global tool configureTools/

Select the new maven and configure the version. If you have your own maven, configure the path according to your own needs.

Open source address: Github: https://github.com/kplcloud/kplcloudDocument: https://docs.nsini.comDemo: https://kplcloud.nsini.com

Author: pleasant Jinke-Wealth Technology Department-Innovation team

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report