On the machine running QuickBuild server, make sure that the OS account running QuickBuild service is set up appropriately so that it can run below command to connect to desired Kubernetes cluster:
Build agents are running as pods in Kubernetes cluster, and these pods are exposed via services with type "NodePort". QuickBuild server has to access these node ports, so appropriate firewall rule may need to be set up to allow this. For Google Kubernetes Engine, an example firewall rule can be as following:
Build agent docker image needs to be configured with your build environment as well as QuickBuild build agent. Below is an example to create a Debian Linux image only with OpenJDK and build agent installed.
- Assume we have build agent installed at /path/to/buildagent. First run the build agent to make sure it can connect with the build server.
- Create file /path/to/buildagent/Dockerfile with below content:
- Change to directory /path/to/buildagent, and run below command
- Then publish the built image:
Login to QuickBuild server, and enable the Kubernetes plugin in Administration/Plugin Management page as demonstrated below:
Then one can follow the cloud profiles guide to create cloud profiles using Kubernetes launchers like below: