-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Remove elevated permissions from metrics-server #884
Remove elevated permissions from metrics-server #884
Conversation
Welcome @shuaich! |
Hi @shuaich. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @serathius |
Can you also update port number to non privileged in https://github.com/kubernetes-sigs/metrics-server/blob/master/manifests/base/deployment.yaml#L35 |
Updated the secure-port and containerPort to use 10250. |
/ok-to-test |
Please update port in https://github.com/kubernetes-sigs/metrics-server/blob/master/test/e2e_test.go#L228 Removing cap also means we can remove buildx in https://github.com/kubernetes-sigs/metrics-server/blob/master/Makefile#L48 For this MS distribution we might want to other port number than Kubelet port. Could you change it to 4443, which is more natural. |
A non-privileged port 10250 is used as targetPort, which enables the removal of capability cap_net_bind_service, please refer to kubernetes/kubernetes#105957
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: serathius, shuaich 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 |
/cherrypick release-0.5 |
Cherrypick pull request #884 from shuaich/remove_elevated_permission to release-0.5
Cherypick pull request #884 from shuaich/remove_elevated_permission to release-0.4
Description
A non-privileged port 10250 is used as targetPort, which enables the
removal of capability cap_net_bind_service, please refer to
kubernetes/kubernetes#105957
Testing
Create a k8s cluster using kubetest2 with gce as provider and deploy metrics-server with the update image. Manually query metrics.k8s.io API.
What this PR does / why we need it:
This PR rolls back capability cap_net_bind_service.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):No