Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allocate random port for internal components #11825

Closed
lukidzi opened this issue Oct 22, 2024 · 3 comments
Closed

Allocate random port for internal components #11825

lukidzi opened this issue Oct 22, 2024 · 3 comments
Labels
kind/improvement Improvement on an existing feature triage/accepted The issue was reviewed and is complete enough to start working on it

Comments

@lukidzi
Copy link
Contributor

lukidzi commented Oct 22, 2024

What happened?

When running more than one kuma-dp on a VM, users may encounter port conflicts. The Admin API uses port 9901, and the application probe uses port 9902. In such cases, users need to explicitly configure the ports for the next kuma-dp to avoid conflicts. We could implement a check to validate if the port is already in use, allocate a random available port, and log a message such as: application probe is exposed on port: xxxx.

@lukidzi lukidzi added triage/pending This issue will be looked at on the next triage meeting kind/improvement Improvement on an existing feature labels Oct 22, 2024
@jijiechen
Copy link
Member

This applies to these components:

  • Application probe proxy (defaults to 9001)
  • Envoy readiness reporter (defaults to 9902)

@jijiechen
Copy link
Member

If we randomize these ports, it may potentially be conflict with application ports.

@jakubdyszkiewicz
Copy link
Contributor

Triage: Random ports can cause bugs. Consider implementing this kumahq/kuma-website#1786 or kumahq/kuma-website#2024

@jakubdyszkiewicz jakubdyszkiewicz added triage/accepted The issue was reviewed and is complete enough to start working on it and removed triage/pending This issue will be looked at on the next triage meeting labels Oct 28, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kind/improvement Improvement on an existing feature triage/accepted The issue was reviewed and is complete enough to start working on it
Projects
None yet
Development

No branches or pull requests

3 participants