Category: Kubernetes, Docker, Jenkins, github, automation, yaml

Kubernetes is a powerful tool which works on the top of the container technologies like Docker or Podman or CRI-o. Our operation guys do not need to study all these tools seperately beacause kubernetes is one such tool which will make your task easier and will use whatever technology you want, to manage your containers.

And for that we create another Docker file which will be used to create an image for kubernetes slave (the dynamic slave). Dockerfile that will be used by the jenkins to create the dynamic node whenever needed is: The dynamic slave node setup would allow us to launch the node as and when the demand comes and use it for running the jobs.

Job3 would run on the slave kubernetes node as well and would check that if the deployment is running fine then using curl display the webpage content in the console output and if not then return 1 as the status code.

Related Articles