Introducing G2.ai, the future of software buying.Try now
Sreekanth K.
SK
Staff DevOps, Site Reliability Engineer at 247.ai

Can I tear down and build Jenkins Cluster as Infrastructure as Code?

I would like to have a Jenkins cluster configuration (with all plugin details & more) checked into git as code and a click of button should bring up the cluster. What are the options?
2 comments
Looks like you’re not logged in.
Users need to be logged in to answer questions
Log In
Brian C.
BC
DevOps/SRE at Loanpal
0
Yes it is completely possible. There are several ways to do it. My recommended way is to install CloudBees Jenkins core in a kubernetes cluster. The alternatives are to use a combination of terraform and packer to configure the infrastructure and build a VM image for deployment. Once an image is created with packer and configured the way you like using the jenkins cli (https://medium.com/@shahmaulikn/install-jenkins-plugins-using-command-line-interface-8df0d0eed349) you can deploy and further configure the cluster with terraform and chef.
Looks like you’re not logged in.
Users need to be logged in to write comments
Log In
Reply
Siraj M.
SM
Lead Consultant (DevOps) at Infosys
0
I think you can do it via tools like Chef / puppet, but building full cluster from the scratch may take significant time. Another option can be to dockerize the full solution. Option 3 can be keeping the Jenkins Server up all the time and load Slaves on demand (provide by clouds like Docker / Kubernetes / AWS etc. )
Looks like you’re not logged in.
Users need to be logged in to write comments
Log In
Reply