|Kubernetes plugin required Java 1.8 or higher to run|
Cloud profiles rely on cloud providers to do its job. QuickBuild 8.0 ships with the Kubernetes cloud provider. To use it, one has to enable the Kubernetes plugin by providing a configuration file 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:
You should use your own docker image when define the Kubernetes profile. The image should be pre-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:
With this example, you should use docker image youraccount/qbagent:latest when define the Kubernetes profile above