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:
commit
6bb4e89fe2
@ -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"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user