如何在配置podTemplate时设置流水线中的Time in minutes to retain slave when idle和Max number of instances?
我在System-> see >kubernetes中看到了这两个配置选项。但是我使用了管道,我没有弄清楚如何设置它们。
现在,我的流水线如下所示。
podTemplate(label: 'docker-go',
containers: [
containerTemplate(
name: 'jnlp',
我试图在Jenkins中使用自定义图像配置kubernetes插件,但是当我启动管道时,我得到了这个错误:
Started by user unknown or anonymous
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
‘testjenkinsslaveagent-54-blfkj-1zp9j-lbn6q’ is of
我正试着和库伯奈特斯一起管理詹金斯。我能够使用jenkins kubernetes插件成功地连接到kubernetes。现在,我正在运行一个管道示例,但是在运行过程中,我总是会收到一个错误:
Still waiting to schedule task
‘default-amd64-cm2rx’ is offline
它挂在那里。如果我使用kubectl get pods检查荚,我会发现pod default-amd64-cm2rx正在运行,然后状态更改为已完成,然后它就消失了。然后,另一个类似名称的豆荚,开始和完成,循环继续。这些吊舱的最后一种状态是:
Normal Created
我有一个奇怪的问题,当我在openshift/OKD中运行一个内置容器时,我得到了一个奇怪的问题:
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Still waiting to schedule task
‘Jenkins’ doesn’t have label ‘slave’
Agent slave-8n2r5 is provisioned from template Kubernetes Pod Template
Agent specification [Kubernetes Pod Template] (s