2
votes

I am trying to run integrate minikube with jenkins. I get the following exception:

enter image description here

when I run kubectl get pods NAME READY STATUS RESTARTS AGE jenkins-slave-1d0d94d95d22 1/2 Completed 0 32s jenkins-slave-1d0fe45cdf1d 1/2 Completed 0 22s jenkins-slave-1d123866bd8f 1/2 Completed 0 12s jenkins-slave-1d148c8ccd15 1/2 Completed 0 2s

kubectl logs jenkins-slave-1d0d94d95d22 Error from server: a container name must be specified for pod jenkins-slave-1d0d94d95d22, choose one of: [jnlp kubecrt]

The configuration is as given in the following Kubernetes url :192.168.99.101:8443 Kubernetes 1

Would appreciate your assistance.

1
Maybe this can help you: it contains all steps to use dynamic slaves on minikube medium.com/@lvthillo/…lvthillo

1 Answers

0
votes

The error message says that your jenkins slave doesn't connect to jenkins master.

Maybe clicking the Launch on your jenkins slave machine solves your problem.

  1. Open up a browser on your jenkins slave
  2. Type the URL of jenkins service (probably http://192.168.XXX.XXX:8080/computer).
  3. Go to the Launch button page.
  4. Click the button.