-
Notifications
You must be signed in to change notification settings - Fork 604
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
Assign ssh.localPort
automatically to an available port
#285
Assign ssh.localPort
automatically to an available port
#285
Conversation
e5da6ee
to
640be98
Compare
This PR picks an available TCP port for They used the same port for convenience (so the user doesn't have to configure both), but if we pick a random free one, then we probably should pick the udp port separately, to be sure it is available. |
The current implementation disables the hostdns lookup because If the port is only determined by the hostagent, then the cidata ISO creation must also be delegated to the hostagent, as it needs to include those port settings, so they are known during cloud-init processing. |
640be98
to
43a0ec6
Compare
Fixed to pick up a free UDP DNS port in |
- The hostagent now speaks REST API over `ha.sock` to provide the port information. See `pkg/hostagent/api`. - For backward compatibility, the "default" instance uses port 60022 by default. Close issue 131 Signed-off-by: Akihiro Suda <[email protected]>
43a0ec6
to
544d15d
Compare
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.
LGTM
Signed-off-by: Akihiro Suda <[email protected]>
988f156
to
0675508
Compare
ha.sock
to provide the port information. Seepkg/hostagent/api
.Close #131