Deny jenkins slave pod to remain active for a while (#5225)

* Deny jenkins slave pod to remain active for a while

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
quicksilver 2021-05-14 18:23:30 +08:00 committed by GitHub
parent 0a21933d84
commit 9ffb42d448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,7 @@ on:
- docker-compose.yml
- Makefile
- '!**.md'
- '!build/ci/jenkins/**'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
@ -27,6 +28,7 @@ on:
- docker-compose.yml
- Makefile
- '!**.md'
- '!build/ci/jenkins/**'
jobs:
ubuntu:

View File

@ -15,6 +15,7 @@ on:
- docker-compose.yml
- Makefile
- '!**.md'
- '!build/ci/jenkins/**'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
@ -27,6 +28,7 @@ on:
- docker-compose.yml
- Makefile
- '!**.md'
- '!build/ci/jenkins/**'
jobs:
ubuntu:

View File

@ -31,7 +31,7 @@ pipeline {
customWorkspace '/home/jenkins/agent/workspace'
// We allow this pod to remain active for a while, later jobs can
// reuse cache in previous created nodes.
idleMinutes 120
// idleMinutes 120
}
}
environment {

View File

@ -4,8 +4,8 @@ apiVersion: kind.x-k8s.io/v1alpha4
networking:
ipFamily: "ipv4"
kubeProxyMode: "iptables"
podSubnet: "10.245.0.0/16"
serviceSubnet: "10.246.0.0/16"
podSubnet: "10.247.0.0/16"
serviceSubnet: "10.248.0.0/16"
nodes:
- role: control-plane
- role: worker