Merge pull request #1590 from vmware-tanzu/kube_cert_agent_cpu_request

kube cert agent pod requests 0 cpu to avoid scheduling failures
This commit is contained in:
Joshua Casey 2023-07-25 15:20:53 -05:00 committed by GitHub
commit 6bb4e89fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -548,7 +548,8 @@ func (c *agentController) newAgentDeployment(controllerManagerPod *corev1.Pod) *
},
Requests: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse("32Mi"),
corev1.ResourceCPU: resource.MustParse("20m"),
// Must be explicitly 0 (not unset) to avoid problem described in https://github.com/vmware-tanzu/pinniped/issues/1507.
corev1.ResourceCPU: resource.MustParse("0"),
},
},
},

View File

@ -127,7 +127,7 @@ func TestAgentController(t *testing.T) {
},
Requests: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse("32Mi"),
corev1.ResourceCPU: resource.MustParse("20m"),
corev1.ResourceCPU: resource.MustParse("0"),
},
},
ImagePullPolicy: corev1.PullIfNotPresent,