大网数据广告活动
服务器运维问答

Jenkins Kubernetes plugin: pending All nodes of label are offline

· 52CE 我爱测

I have a kubernetes cluster that I want to work with jenkins. I have configured jenkins plugin to successfully authenticate with kubernetes cluster, but for some reason when I try to run the build it says all nodes are offline. M…

问题原文

原帖链接 · user3081519 · CC BY-SA 3.0

I have a kubernetes cluster that I want to work with jenkins. I have configured jenkins plugin to successfully authenticate with kubernetes cluster, but for some reason when I try to run the build it says all nodes are offline. My config:

Any suggestions are welcome.

已采纳解答

原帖链接 · user3081519 · CC BY-SA 3.0

Turns out it is a jenkins kubernetes plugin bug. Kubernetes v1.5.1 has this issue working with the plugin: https://issues.jenkins-ci.org/browse/JENKINS-40503.

Poking into jenkins logs gave me a hint:

java.lang.NullPointerException
        at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud.addProvisionedSlave(KubernetesCloud.java:592)
        at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud.provision(KubernetesCloud.java:463)
        at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:701)
        at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:307)
        at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:60)
        at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:798)
        at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-12-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。