This project provides a way to deploy a pre-configured Jenkins instance to any Kubernetes cluster (especially local ones like Kind or Minikube). It's designed to demonstrate an end-to-end workflow using IaCConsole-CLI and IaCConsole-DB with a demo OpenTofu unit.
-
Execute the deployment script:
bash deploy.sh
-
Get the password for the Jenkins admin user:
kubectl exec --namespace jenkins -it svc/jenkins-dev -c jenkins -- /bin/cat /run/secrets/additional/chart-admin-password && echo
-
Start port-forwarding to access the Jenkins UI:
kubectl port-forward --namespace jenkins svc/jenkins-dev 8080:8080
-
Navigate your browser to http://127.0.0.1:8080.
-
Log in with the username
adminand the password obtained in step 2. -
Go to the
iacconsole-pipelinejob page: http://127.0.0.1:8080/job/iacconsole-pipeline/. -
On the left menu, click on Build. This will download and execute the
Jenkinsfilefrom the repository. -
Build #1 should start. Click on the build link to open the console output: http://127.0.0.1:8080/job/iacconsole-pipeline/1/console.
-
Scroll to the end of the console output. You should see a plan output from OpenTofu and a question: "Do you want to apply the changes?".
-
Click Proceed and watch as the apply stage is performed.