Title: Message Title
Cesar Tron-Lozai created an issue
Jenkins / JENKINS-49510
Failed connections between JNLP agent and master on Kubernetes
Issue Type:
Bug
Assignee:
Carlos Sanchez
Components:
kubernetes-plugin
Created:
2018-02-12 16:38
Environment:
Jenkins 2.105 Jenkins kubernetes: 1.2
Priority:
Major
Reporter:
Cesar Tron-Lozai
I've set up Jenkins to run on a k8s cluster. I'm using the kubernetes plugin to create agent in the cluster. I have a discovery service available at jenkins-discovery.jenkins.svc.cluster.local:5. I've set up the tunnel property to jenkins-discovery.jenkins.svc.cluster.local:5 When I start a job, the agent seems to be able to connect but then fails for some unknown reasons. The agent logs:
INFO: Locating server among [http://jenkins-internal.jenkins.svc.cluster.local:8080/]
Feb 12, 2018 4:08:37 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Feb 12, 2018 4:08:37 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: jenkins-discovery.jenkins.svc.cluster.local
Agent port: 5
Identity: a1:e6:e0:d2:ad:30:2e:11:47:4f:0f:95:41:d3:d0:a4
Feb 12, 2018 4:08:37 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Feb 12, 2018 4:08:37 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to jenkins-discovery.jenkins.svc.cluster.local:5
Feb 12, 2018 4:08:37 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Feb 12, 2018 4:08:37 PM