ci: tighten agent spread and sweeper limits
This commit is contained in:
parent
a914b2fd05
commit
26629205fb
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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"
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user