Jenkins Kubernetes 插件:待处理标签的所有节点均处于离线状态

Jenkins Kubernetes 插件:待处理标签的所有节点均处于离线状态

我有一个 kubernetes 集群,我想将其与 jenkins 一起使用。我已配置 jenkins 插件以成功通过 kubernetes 集群进行身份验证,但由于某种原因,当我尝试运行构建时,它显示所有节点都处于离线状态。我的配置: 在此处输入图片描述

欢迎任何建议。

答案1

事实证明这是 jenkins kubernetes 插件错误。Kubernetes v1.5.1 在使用该插件时存在此问题:https://issues.jenkins-ci.org/browse/JENKINS-40503

查看詹金斯日志给了我一个提示:

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)

相关内容