May 2018
Intermediate to advanced
554 pages
13h 51m
English
Now we start to configure Jenkins to build your application. However, to access the WebUI of your custom Jenkins, you need to access the Kubernetes service that binds to your Jenkins pod. It is easier to use kubectl port-forward to access remotely to configure Jenkins:
//check pod name$ kubectl get podsNAME READY STATUS RESTARTS AGEmy-jenkins-cbdd6446d-ttxj5 1/1 Running 0 1m//port forward from your machine :58080 to Jenkins :8080$ kubectl port-forward my-jenkins-cbdd6446d-ttxj5 58080:8080Forwarding from 127.0.0.1:58080 -> 8080
The initial configuration of Jenkins is done via the following steps: