-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Fix Heapster and Metrics Server configuration to enable overriding resource requirements. #56965
Conversation
/unassign @DirectXMan12 |
@piosz @mikedanese |
/approve no-issue |
- --cpu={{ base_metrics_cpu }} | ||
- --extra-cpu={{ metrics_cpu_per_node }}m | ||
- --memory={{ base_metrics_memory }} | ||
- --extra-memory={{ metrics_memory_per_node }}Mi | ||
- --extra-memory={{metrics_memory_per_node}}Mi |
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.
Why? Either keep the spaces in all params or remove from all of them.
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.
Done
One small nit, but otherwise looks good. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kawych, mikedanese, x13n Associated issue requirement bypassed by: mikedanese The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
Automatic merge from submit-queue (batch tested with PRs 57324, 56931, 57000, 57150, 56965). If you want to cherry-pick this change to another branch, please follow the instructions here. |
command: | ||
- /pod_nanny | ||
- --config-dir=/etc/config | ||
- --cpu=100m |
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.
@kawych Actually, this flag no longer exists in the new version, so this won't work. Please create a new PR to remove unused flags.
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.
It will work, I've tested it :) But it looks like I've submitted the code into incorrect branch: https://github.com/kubernetes/autoscaler/blob/addon-resizer-release-1/addon-resizer/nanny/main/pod_nanny.go#L45
I think we just need to cherrypick this to 1.8 branch. I can do a PR later today/early on monday.
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.
Ack. We'll need image version bump here later anyway.
@@ -73,6 +99,9 @@ spec: | |||
requests: | |||
cpu: 50m | |||
memory: {{ nanny_memory }} | |||
volumeMounts: | |||
- name: heapster-config-volume | |||
mountMath: /etc/config |
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.
s/Math/Path
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.
oops! Will submit a fix shortly.
@@ -73,6 +99,9 @@ spec: | |||
requests: | |||
cpu: 50m | |||
memory: {{ nanny_memory }} | |||
volumeMounts: | |||
- name: heapster-config-volume |
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.
No such thing as heapster-config-volume
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.
Defined below, but now I've noticed duplicated "volumes:" section - maybe that's why? Will submit a fix
What this PR does / why we need it:
Configure resources for Heapster and Metrics Servier using Component Config. This will enable overriding default resource requirements for these components.
Release note: