-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
Kuberntes plugin unable to connect the internal port via cluster dns, it is trying to connect public dns with internal port.
Using latest LTS jenkins with latest kuberntes plugins.
Oct 01, 2020 5:19:35 PM hudson.remoting.jnlp.Main$CuiListener error SEVERE: https://jenkins-evt.sps-ci.xxx.com/ provided port:50000 is not reachable java.io.IOException: https://jenkins-evt.sps-ci.xxx.com/ provided port:50000 is not reachable at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:314) at hudson.remoting.Engine.innerRun(Engine.java:694) at hudson.remoting.Engine.run(Engine.java:519)
Configured below in kuberntes plugin.
K8S Configuration: Jenkins URL: http://jenkins-evt-svc.ci-cd.svc.cluster.local:8080 POD ENV: JENKINS_URL: http://jenkins-evt-svc.ci-cd.svc.cluster.local:8080/ |
While it is trying to connect the jenkins it showing below URL INFO: Locating server among https://jenkins-evt.sps-ci.xxx.com/ InstedOf http://jenkins-evt-svc.ci-cd.svc.cluster.local:8080 ERROR Oct 01, 2020 5:57:06 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver openURLConnection WARNING: HTTPs certificate check is disabled for the endpoint. Oct 01, 2020 5:57:06 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping] Oct 01, 2020 5:57:06 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver isPortVisible WARNING: Connection refused (Connection refused) Oct 01, 2020 5:57:06 PM hudson.remoting.jnlp.Main$CuiListener error SEVERE: https://jenkins-evt.sps-ci.xxx.com/ provided port:50000 is not reachable java.io.IOException: https://jenkins-evt.sps-ci.xxx.com/ provided port:50000 is not reachable at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:314) at hudson.remoting.Engine.innerRun(Engine.java:694) at hudson.remoting.Engine.run(Engine.java:519)
Agents do a look up on http port to retrieve the host and port to use for jnlp.
Check whether the system property hudson.TcpSlaveAgentListener.hostName is defined in your java options and remove it.
Otherwise, consider using websockets instead.