-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: ability to override admin console and lam host ports #1201
feat: ability to override admin console and lam host ports #1201
Conversation
This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID. Online Installer:
Airgap Installer (may take a few minutes before the airgap bundle is built):
Happy debugging! |
33e4c22
to
f8b2d50
Compare
Name: "local-artifact-mirror-port", | ||
Usage: "Port on which the Local Artifact Mirror will be served", |
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.
I was considering whether it was worth mentioning the name LAM or not, because an end user will have no idea what that is and doesn't need to. But I don't know what else we'd call it other than port-2
. So maybe it's fine.
I don't have a strong preference, but we could consider lam-port
if we feel like local-artifact-mirror-port
is too long, or use it as an alias. People don't type this much, so I don't care much.
return &cli.StringFlag{ | ||
Name: "admin-console-port", | ||
Usage: "Port on which the Admin Console will be served", | ||
Value: strconv.Itoa(defaults.AdminConsolePort), |
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.
Nice. Came here looking for this because I like the default value to show in the help menu so users can more easily determine if they need to set it to something else.
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.
Is there a range of ports that that are valid that we should validate this against? Maybe 80-32767 or whatever the node port range is set to?
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.
Oh I see your TODO down lower
9381573
to
f231713
Compare
f231713
to
edbded1
Compare
@@ -282,7 +283,7 @@ create-node%: | |||
-v /var/lib/k0s \ | |||
-v $(shell pwd):/replicatedhq/embedded-cluster \ | |||
-v $(shell dirname $(shell pwd))/kots:/replicatedhq/kots \ | |||
$(if $(filter node0,node$*),-p 30000:30000) \ | |||
$(if $(filter node0,node$*),-p $(NODE_PORT):$(NODE_PORT)) \ |
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.
Shouldn't the container port be 30000? Otherwise you'd have to pass the admin console port flag right?
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.
yes this is intentional
&cli.StringFlag{ | ||
Name: "local-artifact-mirror-port", | ||
Usage: "Port on which the Local Artifact Mirror will be served. If left empty, the port will be retrieved from the snapshot.", | ||
// DefaultText: strconv.Itoa(defaults.LocalArtifactMirrorPort), |
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.
is this intentional?
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.
yes im not sure what is right here
What this PR does / why we need it:
--admin-console-port
--local-artifact-mirror-port
--local-artifact-mirror-port
Which issue(s) this PR fixes:
Does this PR require a test?
Does this PR require a release note?
Does this PR require documentation?