ci: tighten agent spread and sweeper limits

This commit is contained in:
jenkins 2026-05-20 06:33:12 -03:00
parent a914b2fd05
commit 26629205fb
5 changed files with 12 additions and 5 deletions

2
Jenkinsfile vendored
View File

@ -35,7 +35,7 @@ spec:
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway whenUnsatisfiable: DoNotSchedule
labelSelector: labelSelector:
matchLabels: matchLabels:
jenkins/jenkins-jenkins-agent: "true" jenkins/jenkins-jenkins-agent: "true"

View File

@ -34,7 +34,7 @@ spec:
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway whenUnsatisfiable: DoNotSchedule
labelSelector: labelSelector:
matchLabels: matchLabels:
jenkins/jenkins-jenkins-agent: "true" jenkins/jenkins-jenkins-agent: "true"

View File

@ -475,7 +475,7 @@ data:
clouds: clouds:
- kubernetes: - kubernetes:
capOnlyOnAlivePods: true capOnlyOnAlivePods: true
containerCapStr: "8" containerCapStr: "5"
connectTimeout: "20" connectTimeout: "20"
readTimeout: "90" readTimeout: "90"
jenkinsUrl: "http://jenkins.jenkins.svc.cluster.local:8080" jenkinsUrl: "http://jenkins.jenkins.svc.cluster.local:8080"
@ -569,7 +569,7 @@ data:
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway whenUnsatisfiable: DoNotSchedule
labelSelector: labelSelector:
matchLabels: matchLabels:
jenkins/jenkins-jenkins-agent: "true" jenkins/jenkins-jenkins-agent: "true"

View File

@ -52,7 +52,7 @@ spec:
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway whenUnsatisfiable: DoNotSchedule
labelSelector: labelSelector:
matchLabels: matchLabels:
jenkins/jenkins-jenkins-agent: "true" jenkins/jenkins-jenkins-agent: "true"

View File

@ -47,6 +47,13 @@ spec:
securityContext: securityContext:
privileged: true privileged: true
runAsUser: 0 runAsUser: 0
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 256Mi
volumeMounts: volumeMounts:
- name: host-root - name: host-root
mountPath: /host mountPath: /host