How to deal with Jenkins Operator problems

Turn on debug in Jenkins Operator deployment:

sed -i 's|\(args:\).*|\1\ ["--debug"\]|' deploy/operator.yaml
kubectl apply -f deploy/operator.yaml

Watch Kubernetes events:

kubectl get events --sort-by='{.lastTimestamp}'

Verify Jenkins master logs:

kubectl logs -f jenkins-<cr_name>

Verify the jenkins-operator logs:

kubectl logs deployment/jenkins-operator


Delete the Jenkins master pod and wait for the new one to come up:

kubectl delete pod jenkins-<cr_name>
Last modified December 20, 2019