Skip to content

Commit

Permalink
Lower the CPU request for the Affinity Assistant
Browse files Browse the repository at this point in the history
1/10th of a core may be too much to request. This may affect how much
TaskRun pods can request, especially on single-core Nodes.

This commit lower the CPU request to 1/20th of a core.

/kind misc
  • Loading branch information
jlpettersson authored and tekton-robot committed Jun 9, 2020
1 parent 51df0a8 commit 7df013b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/reconciler/pipelinerun/affinity_assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ func affinityAssistantStatefulSet(name string, pr *v1beta1.PipelineRun, claimNam
// Affinity Assistant pod is a placeholder; request minimal resources
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
"cpu": resource.MustParse("100m"),
"cpu": resource.MustParse("50m"),
"memory": resource.MustParse("100Mi"),
},
Requests: corev1.ResourceList{
"cpu": resource.MustParse("100m"),
"cpu": resource.MustParse("50m"),
"memory": resource.MustParse("100Mi"),
},
},
Expand Down

0 comments on commit 7df013b

Please sign in to comment.