Source: rkwal-007.medium.com

CI/CD pipeline using Dynamic Cluster

Category: Kubernetes, Jenkins, github

Create A dynamic Jenkins cluster and perform previous task using the dynamic Jenkins cluster. Steps to proceed as:Step Creating the container image that’s has Linux and other basic configuration required to run Slave for Jenkins.

Now simply build a Docker image using Dockerfile using following command : For our requirement we need to tag this image in order to upload it on docker hub.

This job will simply create a new docker image dynamically for the application and copy the application code into that corresponding docker image push that image to the docker hub (Public repository)

In this job we are giving the labels that we have assign at the time of configure the cloud so that by using this labels Jenkins will know that they have to run this job on dynamic slave and start creating slave dynamically for running this job.

Related Articles