First, what Kplcloud that?
kplcloud is based on a lightweight Kubernetes of PaaS, through a visual interface for management applications, the degree of reduction of the application container, thereby reducing the cost of the time of the application container.
Kplcloud letter should have been in service for more than one team and pleasant wealth, etc., stable operation for nearly two years, the current platform has ran hundreds of applications, nearly 1,000 containers in a production environment.
1.1 Quick Start
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 preparation
- The connection kubeconfig file into the project directory of Kubernets
- app.cfg configuration file into the project directory also app.cfg configuration (see GitHub repository see profile)
Docker start
$ cd install/docker-compose
$ docker-compose up
make start
$ make run
Second, the configuration gitlab and Jenkins
Source application is pulled by jenkins from the git server to be compiled on jenkins server, so we need to make jenkins services have access to the git services.
The following is how to make jenkins have access to gitlab and github configuration.
2.1 gitlab Configuration
- Log jenkins server
- enter
cd ~/.ssh/
- turn up
cat id_rsa.pub
- If you do not execute the following command to generate:
$ ssh-keygen -o -t rsa -b 4096 -C
- The content posted to your gitlab
Configuration on 2.2 jenkins
- Log jenkins server
- enter
cd ~/.ssh/
- turn up
cat id_rsa
- If you do not execute the following command to generate:
$ ssh-keygen -o -t rsa -b 4096 -C
- 进入 http://{your jenkins server}/credentials/store/system/domain/_/
Click on the "Add Credentials"
The privateKey attached to private Key block so jenkins server can access the service to gitlab.
2.3 installation maven
java build applications need to be installed maven plugin
Search maven plugin, check the good direct installation, check the automatic restart after installing jenkins
2.4 Configuring maven
Enter the global tool configureTools /
Select the new maven, and configure version, if you have your own maven, configuration path according to their needs.
Open Source Address:
- Github: https://github.com/kplcloud/kplcloud
- Document: https://docs.nsini.com
- Demo: https://kplcloud.nsini.com
Author: pleasant Jinke - Wealth Technology - Innovation Team