root @ k8s:/opt/k8s/kubernetes/cluster/ubuntu/binaries#./kubectl日志jnlp-slave-1c45182a61
Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: jnlp-slave-1c45182a61
Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://jenkins_server_ip:8080]
Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: http://jenkins_server_ip:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found
java.lang.Exception: http://jenkins_server_ip:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found
at hudson.remoting.Engine.run(Engine.java:215)
root @ k8s:/opt/k8s/kubernetes/cluster/ubuntu/binaries#curl http://jenkins_server_ip:8080/tcpSlaveAgentListener/
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /tcpSlaveAgentListener/. Reason:
<pre> Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>
最佳答案
请检查
http://jenkins_server_ip:8080/configureSecurity/
[JNLP从属代理的TCP端口] 应该 NOT 为[禁用]
关于jenkins kubernetes jenkins从属节点离线,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38969044/