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

process: do not enable profiler by default #66

Conversation

Vicente-Cheng
Copy link
Collaborator

Problem:
NDM created with the hostNetwork: true. This parameter will expose the whole port on this pod to the host.
So, we need to prevent listening to unnecessary ports on NDM pods.

Solution:
we can disable profiler by default. NDM does not use it generally.

Related Issue:
harvester/harvester#4212

Test plan:
make sure the host does not listen :6060

harvester-node-0:~ # ss -tnal |grep 6060
LISTEN 0      4096               *:6060             *:*

    - we use `hostNetwork` because we need to listen uevent.
      `hostNetwork` will expose any listen ports to host, so we
      should prevent enable extra ports.

Signed-off-by: Vicente Cheng <[email protected]>
Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Vicente-Cheng Vicente-Cheng merged commit 99ecbeb into harvester:master Dec 20, 2023
8 checks passed
@Vicente-Cheng
Copy link
Collaborator Author

@Mergifyio backport v0.5.x

Copy link

mergify bot commented Mar 22, 2024

backport v0.5.x

✅ Backports have been created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants