-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flake: fix qos sort plugin flaky integration test #861
Conversation
Skipping CI for Draft Pull Request. |
✅ Deploy Preview for kubernetes-sigs-scheduler-plugins canceled.
|
/test pull-scheduler-plugins-integration-test-master |
2 similar comments
/test pull-scheduler-plugins-integration-test-master |
/test pull-scheduler-plugins-integration-test-master |
https://prow.k8s.io/pr-history/?org=kubernetes-sigs&repo=scheduler-plugins&pr=862 |
/test pull-scheduler-plugins-integration-test-master |
v1.ResourceMemory: *resource.NewQuantity(200, resource.DecimalSI), | ||
}, | ||
} | ||
// Make pods[2] Guaranteed. | ||
pods[2].Spec.Containers[0].Resources = v1.ResourceRequirements{ | ||
Requests: v1.ResourceList{ | ||
v1.ResourceCPU: *resource.NewMilliQuantity(100, resource.DecimalSI), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some investigation, I found that the problem should be here: Guaranteed pod definition needs to be specified both cpu mem limit and request.
FYI: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#criteria
@Huang-Wei friendly ping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: googs1025, Huang-Wei The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind flake
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?