Skip to content
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

Run cAdvisor on the same interface as kubelet #47195

Merged

Conversation

dims
Copy link
Member

@dims dims commented Jun 8, 2017

What this PR does / why we need it:

cAdvisor currently binds to all interfaces. Currently the only
solution is to use iptables to block access to the port. We
are better off making cAdvisor to bind to the interface that
kubelet uses for better security.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Fixes #11710

Special notes for your reviewer:

Release note:

cAdvisor binds only to the interface that kubelet is running on instead of all interfaces.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 8, 2017
@dims dims changed the title Run cAdvisor on the same interface as kubelet [WIP] Run cAdvisor on the same interface as kubelet Jun 8, 2017
@dims dims force-pushed the bind-cadvisor-on-kubelet-interface branch from bf2fa85 to 7e5c43a Compare June 8, 2017 20:42
cAdvisor currently binds to all interfaces. Currently the only
solution is to use iptables to block access to the port. We
are better off making cAdvisor to bind to the interface that
kubelet uses for better security.

Fixes kubernetes#11710
@k8s-github-robot k8s-github-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jun 8, 2017
@dims dims changed the title [WIP] Run cAdvisor on the same interface as kubelet Run cAdvisor on the same interface as kubelet Jun 8, 2017
@dims
Copy link
Member Author

dims commented Jun 8, 2017

/assign @vishh

@vishh
Copy link
Contributor

vishh commented Jun 8, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 8, 2017
@vishh
Copy link
Contributor

vishh commented Jun 8, 2017

/approve

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, vishh

Associated issue: 11710

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 /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 8, 2017
@feiskyer
Copy link
Member

feiskyer commented Jun 9, 2017

should this be included in v1.7?

@luxas
Copy link
Member

luxas commented Jun 9, 2017

I see this as kind/bug, I think it might be included in v1.7 if @dchen1107 and @kubernetes/kubernetes-release-managers agree

@dims
Copy link
Member Author

dims commented Jun 21, 2017

/test all

@dims
Copy link
Member Author

dims commented Jun 21, 2017

/retest

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 47922, 47195, 47241, 47095, 47401)

@k8s-github-robot k8s-github-robot merged commit 467705b into kubernetes:master Jun 23, 2017
@dims dims deleted the bind-cadvisor-on-kubelet-interface branch November 16, 2017 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubelet's cAdvisor binds to all interfaces
8 participants