Подчиненный сервис Kubernetes всегда офлайн
Я пытаюсь запустить kubernetes jenkins с ведомым устройством, и это журнал, который я вижу, когда пытаюсь запустить процесс сборки в jenkins:
2020-09-07 15:01:17.650+0000 [id=182] WARNING o.c.j.p.k.KubernetesLauncher#launch: Error in provisioning; agent=KubernetesSlave name: ci-tmkck, template=PodTemplate{inheritFrom='', name='ci', namespace='ci', label='ci', nodeSelector='', nodeUsageMode=NORMAL, workspaceVolume=EmptyDirWorkspaceVolume [memory=false], containers=[ContainerTemplate{name='jnlp', image='jenkins/jnlp-slave:3.10-1', workingDir='/home/jenkins', command='/bin/sh -c', args=' ', resourceRequestCpu='200m', resourceRequestMemory='256Mi', resourceLimitCpu='200m', resourceLimitMemory='256Mi', envVars=[ContainerEnvVar [getValue()=http://jenkins:8080, getKey()=JENKINS_URL]], livenessProbe=org.csanchez.jenkins.plugins.kubernetes.ContainerLivenessProbe@45e2d65}]}
java.lang.IllegalStateException: Pod has terminated containers: ci/ci-tmkck (jnlp)
at org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher.periodicAwait(AllContainersRunningPodWatcher.java:167)
at org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher.periodicAwait(AllContainersRunningPodWatcher.java:188)
at org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher.await(AllContainersRunningPodWatcher.java:131)
at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:128)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:296)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
В журнале сборки jenkins я вижу
Still waiting to schedule task
‘ci-1g7bn’ is offline
Вот так выглядят мои услуги jenkins:
$ kubectl get services -n ci
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ci-jenkins ClusterIP 105.65.155.145 <none> 8080/TCP 223d
ci-jenkins-agent ClusterIP 105.65.136.129 <none> 50000/TCP 223d
$ kubectl get pods -n infrastructure | grep jenkins
jenkins-7b67d56469-v9bkm 1/1 Running 0 1m